Spring Framework Reference Documentation
- 格式:pdf
- 大小:702.26 KB
- 文档页数:33
2016/12/28Spring Framework Reference Documentationhttp://docs.spring.io/springframework/docs/current/springframeworkreference/html/index.html1/33Spring Framework Reference Documentation Next
Spring Framework ReferenceDocumentation
AuthorsRod Johnson , Juergen Hoeller , Keith Donald , Colin Sampaleanu , Rob Harrop , ThomasRisberg , Alef Arendsen , Darren Davison , Dmitriy Kopylenko , Mark Pollack , ThierryTemplier , Erwin Vervaet , Portia Tung , Ben Hale , Adrian Colyer , John Lewis , Costin Leau, Mark Fisher , Sam Brannen , Ramnivas Laddad , Arjen Poutsma , Chris Beams , TareqAbedrabbo , Andy Clement , Dave Syer , Oliver Gierke , Rossen Stoyanchev , Phillip Webb ,Rob Winch , Brian Clozel , Stephane Nicoll , Sebastien Deleuze
4.3.5.RELEASECopyright © 20042016Copies of this document may be made for your own use and for distribution to others, provided that youdo not charge any fee for such copies and further provided that each copy contains this CopyrightNotice, whether distributed in print or electronically.
Table of ContentsI. Overview of Spring Framework1. Getting Started with Spring2. Introduction to the Spring Framework2.1. Dependency Injection and Inversion of Control2.2. Modules2.2.1. Core Container2.2.2. AOP and Instrumentation2.2.3. Messaging2.2.4. Data Access/Integration2.2.5. Web2.2.6. Test2016/12/28Spring Framework Reference Documentationhttp://docs.spring.io/springframework/docs/current/springframeworkreference/html/index.html2/332.3. Usage scenarios
2.3.1. Dependency Management and Naming ConventionsSpring Dependencies and Depending on SpringMaven Dependency ManagementMaven "Bill Of Materials" DependencyGradle Dependency ManagementIvy Dependency ManagementDistribution Zip Files2.3.2. LoggingNot Using Commons LoggingUsing SLF4JUsing Log4J
II. What’s New in Spring Framework 4.x3. New Features and Enhancements in SpringFramework 4.0
3.1. Improved Getting Started Experience3.2. Removed Deprecated Packages and Methods3.3. Java 8 (as well as 6 and 7)3.4. Java EE 6 and 73.5. Groovy Bean Definition DSL3.6. Core Container Improvements3.7. General Web Improvements3.8. WebSocket, SockJS, and STOMP Messaging3.9. Testing Improvements
4. New Features and Enhancements in SpringFramework 4.1
4.1. JMS Improvements4.2. Caching Improvements4.3. Web Improvements4.4. WebSocket Messaging Improvements4.5. Testing Improvements
5. New Features and Enhancements in SpringFramework 4.22016/12/28Spring Framework Reference Documentationhttp://docs.spring.io/springframework/docs/current/springframeworkreference/html/index.html3/335.1. Core Container Improvements
5.2. Data Access Improvements5.3. JMS Improvements5.4. Web Improvements5.5. WebSocket Messaging Improvements5.6. Testing Improvements
6. New Features and Enhancements in SpringFramework 4.3
6.1. Core Container Improvements6.2. Data Access Improvements6.3. Caching Improvements6.4. JMS Improvements6.5. Web Improvements6.6. WebSocket Messaging Improvements6.7. Testing Improvements6.8. Support for new library and server generations
III. Core Technologies7. The IoC container7.1. Introduction to the Spring IoC container and beans7.2. Container overview7.2.1. Configuration metadata7.2.2. Instantiating a containerComposing XMLbased configuration metadata7.2.3. Using the container
7.3. Bean overview7.3.1. Naming beansAliasing a bean outside the bean definition7.3.2. Instantiating beansInstantiation with a constructorInstantiation with a static factory methodInstantiation using an instance factory method
7.4. Dependencies7.4.1. Dependency InjectionConstructorbased dependency injection2016/12/28Spring Framework Reference Documentationhttp://docs.spring.io/springframework/docs/current/springframeworkreference/html/index.html4/33Setterbased dependency injectionDependency resolution processExamples of dependency injection7.4.2. Dependencies and configuration in detailStraight values (primitives, Strings, and so on)References to other beans (collaborators)Inner beansCollectionsNull and empty string valuesXML shortcut with the pnamespaceXML shortcut with the cnamespaceCompound property names7.4.3. Using dependson7.4.4. Lazyinitialized beans7.4.5. Autowiring collaboratorsLimitations and disadvantages of autowiringExcluding a bean from autowiring7.4.6. Method injectionLookup method injectionArbitrary method replacement
7.5. Bean scopes7.5.1. The singleton scope7.5.2. The prototype scope7.5.3. Singleton beans with prototypebean dependencies7.5.4. Request, session, global session, application, and WebSocketscopesInitial web configurationRequest scopeSession scopeGlobal session scopeApplication scopeScoped beans as dependencies7.5.5. Custom scopesCreating a custom scopeUsing a custom scope