认真学spring官网,很容易找到spring4的jar包下载位置

来源:互联网 发布:淘宝外卖商家版下载 编辑:程序博客网 时间:2024/04/29 13:13

http://www.open-open.com/news/view/1eb1613

上述网页内容,演示了如何从spring官网获取spring包和使用方法

值得收藏哦

下面链接,就是spring自身的doc地址以及下载链接所在

http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/overview.html#overview-modules

2.3 Usage scenarios

The building blocks described previously make Spring a logical choice in many scenarios, from embedded applications that run on resource-constrained devices to full-fledged enterprise applications that use Spring’s transaction management functionality and web framework integration.

Figure 2.2. Typical full-fledged Spring web application

overview full

Spring’s declarative transaction management features make the web application fully transactional, just as it would be if you used EJB container-managed transactions. All your custom business logic can be implemented with simple POJOs and managed by Spring’s IoC container. Additional services include support for sending email and validation that is independent of the web layer, which lets you choose where to execute validation rules. Spring’s ORM support is integrated with JPA, Hibernate and JDO; for example, when using Hibernate, you can continue to use your existing mapping files and standard Hibernate SessionFactory configuration. Form controllers seamlessly integrate the web-layer with the domain model, removing the need for ActionForms or other classes that transform HTTP parameters to values for your domain model.

Figure 2.3. Spring middle-tier using a third-party web framework

overview thirdparty web

Sometimes circumstances do not allow you to completely switch to a different framework. The Spring Framework does not force you to use everything within it; it is not an all-or-nothing solution. Existing front-ends built with Struts, Tapestry, JSF or other UI frameworks can be integrated with a Spring-based middle-tier, which allows you to use Spring transaction features. You simply need to wire up your business logic using an ApplicationContext and use a WebApplicationContext to integrate your web layer.

Figure 2.4. Remoting usage scenario

overview remoting

When you need to access existing code through web services, you can use Spring’s Hessian-Burlap-Rmi- or JaxRpcProxyFactory classes. Enabling remote access to existing applications is not difficult.

Figure 2.5. EJBs - Wrapping existing POJOs

overview ejb

The Spring Framework also provides an access and abstraction layer for Enterprise JavaBeans, enabling you to reuse your existing POJOs and wrap them in stateless session beans for use in scalable, fail-safe web applications that might need declarative security.


0 0