Springframework Introduce

xiaoxiao2021-03-06  108

Spring is a yered java / j2ee application scam, based on-one j2ee design and development by rod johnson (wrox, 2002). Spring Includes:

. Powerful JavaBeans-based configuration management, applying Inversion-of-Control principles This makes wiring up applications quick and easy No more singletons littered throughout your codebase, no more arbitrary properties files:. One consistent and elegant approach everywhere This core bean factory can. be used in any environment, from applets to J2EE containers. Generic abstraction layer for transaction management, allowing for pluggable transaction managers, and making it easy to demarcate transactions without dealing with low-level issues. Generic strategies for JTA and a single JDBC DataSource are included. In contrast to plain JTA or EJB CMT, Spring's transaction support is not tied to J2EE environments. JDBC abstraction layer that offers a meaningful exception hierarchy (no more pulling vendor codes out of SQLException), simplifies error handling, and greatly reduces the amount Of code you'll need to write. You'll never need to write one jdbc again. TH e JDBC-oriented exceptions comply to Spring's generic DAO exception hierarchy Integration with Hibernate, JDO, and iBATIS SQL Maps:. in terms of resource holders, DAO implementation support, and transaction strategies First-class Hibernate support with lots of IoC convenience features,. addressing many typical Hibernate integration issues. All of these comply to Spring's generic transaction and DAO exception hierarchies. AOP functionality, fully integrated into Spring configuration management. You can AOP-enable any object managed by Spring, adding aspects such as declarative transaction management. With Spring, You Can Have Declarative Transaction Management WITHOUT EJB ... Even WITHOUT JTA, IF You '

re using a single database in Tomcat or another web container without JTA support. Flexible MVC web application framework, built on core Spring functionality. This framework is configurable via highly strategy interfaces, and accommodates multiple view technologies like JSP, Velocity, Tiles, iText, and POI. Note that a Spring middle tier can easily be combined with a web tier based on any other web MVC framework, like Struts, WebWork, or Tapestry.You can use all of Spring's functionality in any J2EE server, and most of it also in non-managed environments. A central focus of Spring is to allow for reusable business and data access objects that are not tied to specific J2EE services. Such objects can be reused across J2EE environments (web or EJB), standalone applications, test environments, ETC WITHOUT ANY HASSLE. SPRING'S LAYRED Architecture Gives You a Lot of Flexibility. All ITS Functionality Builds on Lower Levels. So you can singy the javabeans configuration management using the MVC framework or AOP support. But if you use the web MVC framework or AOP support, you'll find they build on the configuration framework, so you can apply your knowledge about it immediately.

转载请注明原文地址:https://www.9cbs.com/read-102959.html

New Post(0)