0, overview
What is Spring?
l J2EE framework
l For multi-layer architecture, all levels with comprehensive and modularity
Spring's goal
l makes J2EE more easy to use, promote good programming practice
l makes existing techniques more easy to use
l Easy to transplant between applications
l and other items (such as hibernate) integration (rather than retrofit)
Spring benefits
l tissue intermediate layer object
l Eliminate Singleton's frequent use
l Apps as little as possible on its API
l Application is easy for unit testing
l makes EJB a optional implementation
l Provides a consistent data access framework
l You can choose to use it independently, but it is consistent within the architecture.
Spring features
Enterprise architecture
l The architecture using Spring is flexible and changeable.
l All layers can benefit from Spring
Scenario 1: Complete Spring Web Application
Scenario 2: Using third-party web frames as Spring intermediate layers
Scenario 3: Remote use
Scenario 4: Packaging the existing Pojo using EJB