没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
ag = do,act 做,动
(1) agent[ag 做,办理,-ent 名词后缀,表示人;"做事者","办事者" →]代理人
认得 ag 识字多,立竿见影
记忆单词非常难,原有捷径
1.ag
第一部分 单词的核心 词根
(7) agenda [ag 做, -end 名词后缀,-a表示复数;愿意为:things to be done,"待做的事项"] 议事日程
(8) agile [ag 做-活动-灵活,-ile 形容词后缀,...的]灵活的,敏捷的
(10)agitate [见上, -it-, -ate 动词后缀, 使...;"使骚动"→]鼓动,煽动,搅动,使不安定
(11)agitation [见上,-ion名词后缀] 鼓动,煽动
1.0
Copyright © 2004-2011 Rod Johnson, Juergen Hoeller, Keith Donald, Colin Sampaleanu, Rob
Harrop, Alef Arendsen, Thomas Risberg, Darren Davison, Dmitriy Kopylenko, Mark Pollack,
Thierry Templier, Erwin Vervaet, Portia Tung, Ben Hale, Adrian Colyer, John Lewis, Costin
Leau, Mark Fisher, Sam Brannen, Ramnivas Laddad, Arjen Poutsma, Chris Beams, Tareq
Abedrabbo, Andy Clement, Dave Syer, Oliver Gierke, Rossen Stoyanchev
Copies of this document may be made for your own use and for distribution to others, provided
that you do not charge any fee for such copies and further provided that each copy contains this
Copyright Notice, whether distributed in print or electronically.
英语词汇的奥秘
Table of Contents
I. Overview of Spring Framework ..............................................................................................1
1. Introduction to Spring Framework ..................................................................................2
1.1. Dependency Injection and Inversion of Control ....................................................2
1.2. Modules ............................................................................................................3
Core Container .................................................................................................3
Data Access/Integration ....................................................................................3
Web .................................................................................................................4
AOP and Instrumentation ..................................................................................4
Test .................................................................................................................4
1.3. Usage scenarios .................................................................................................5
Dependency Management and Naming Conventions ...........................................6
Spring Dependencies and Depending on Spring ..........................................8
Maven Dependency Management ..............................................................8
Ivy Dependency Management .................................................................10
Logging .........................................................................................................10
Not Using Commons Logging .................................................................11
Using SLF4J ..........................................................................................11
Using Log4J ...........................................................................................13
II. What's New in Spring 3 ......................................................................................................15
2. New Features and Enhancements in Spring 3.0 .............................................................16
2.1. Java 5 ..............................................................................................................16
2.2. Improved documentation ..................................................................................16
2.3. New articles and tutorials ..................................................................................16
2.4. New module organization and build system .......................................................17
2.5. Overview of new features .................................................................................18
Core APIs updated for Java 5 ..........................................................................19
Spring Expression Language ...........................................................................19
The Inversion of Control (IoC) container ..........................................................20
Java based bean metadata ........................................................................20
Defining bean metadata within components ..............................................21
General purpose type conversion system and field formatting system .................21
The Data Tier .................................................................................................21
The Web Tier .................................................................................................22
Comprehensive REST support .................................................................22
@MVC additions ...................................................................................22
Declarative model validation ...........................................................................22
Early support for Java EE 6 .............................................................................22
Support for embedded databases ......................................................................22
3. New Features and Enhancements in Spring 3.1 .............................................................23
3.1. Overview of new features .................................................................................23
Spring Framework
3.1 Reference Documentation ii
Cache Abstraction ..........................................................................................23
Bean Definition Profiles ..................................................................................23
Environment Abstraction ................................................................................23
PropertySource Abstraction .............................................................................23
Code equivalents for Spring's XML namespaces ...............................................24
Builder-style APIs for code-based Hibernate configuration ................................24
TestContext framework support for @Configuration classes and bean definition
profiles ..........................................................................................................24
c: namespace for more concise constructor injection .........................................24
Support for injection against non-standard JavaBeans setters .............................24
Support for Servlet 3 code-based configuration of Servlet Container ..................25
Support for Servlet 3 MultipartResolver ...........................................................25
JPA EntityManagerFactory bootstrapping without persistence.xml ....................25
New HandlerMethod-based Support Classes For Annotated Controller Processing
.......................................................................................................................25
Consumes and Produces @RequestMapping Conditions ...................................26
Working With URI Template Variables In Controller Methods ..........................26
Validation For @RequestBody Method Arguments ...........................................27
III. Core Technologies ............................................................................................................28
4. The IoC container .......................................................................................................29
4.1. Introduction to the Spring IoC container and beans .............................................29
4.2. Container overview ..........................................................................................29
Configuration metadata ...................................................................................30
Instantiating a container ..................................................................................31
Composing XML-based configuration metadata .......................................33
Using the container .........................................................................................33
4.3. Bean overview .................................................................................................34
Naming beans .................................................................................................35
Aliasing a bean outside the bean definition ...............................................36
Instantiating beans ..........................................................................................37
Instantiation with a constructor ................................................................37
Instantiation with a static factory method .................................................38
Instantiation using an instance factory method ..........................................38
4.4. Dependencies ...................................................................................................40
Dependency injection ......................................................................................40
Constructor-based dependency injection ...................................................40
Setter-based dependency injection ...........................................................42
Dependency resolution process ................................................................43
Examples of dependency injection ...........................................................45
Dependencies and configuration in detail .........................................................47
Straight values (primitives, Strings, and so on) .........................................47
References to other beans (collaborators) .................................................48
Inner beans .............................................................................................49
Collections .............................................................................................50
Null and empty string values ...................................................................52
Spring Framework
3.1 Reference Documentation iii
XML shortcut with the p-namespace ........................................................53
XML shortcut with the c-namespace ........................................................54
Compound property names ......................................................................55
Using depends-on ...........................................................................................55
Lazy-initialized beans .....................................................................................56
Autowiring collaborators .................................................................................56
Limitations and disadvantages of autowiring ............................................58
Excluding a bean from autowiring ...........................................................58
Method injection ............................................................................................59
Lookup method injection .........................................................................60
Arbitrary method replacement .................................................................61
4.5. Bean scopes .....................................................................................................62
The singleton scope ........................................................................................63
The prototype scope ........................................................................................64
Singleton beans with prototype-bean dependencies ...........................................65
Request, session, and global session scopes ......................................................65
Initial web configuration .........................................................................65
Request scope .........................................................................................66
Session scope .........................................................................................66
Global session scope ...............................................................................67
Scoped beans as dependencies .................................................................67
Custom scopes ...............................................................................................69
Creating a custom scope ..........................................................................69
Using a custom scope ..............................................................................70
4.6. Customizing the nature of a bean .......................................................................71
Lifecycle callbacks .........................................................................................72
Initialization callbacks ............................................................................72
Destruction callbacks ..............................................................................73
Default initialization and destroy methods ................................................73
Combining lifecycle mechanisms ............................................................75
Startup and shutdown callbacks ...............................................................75
Shutting down the Spring IoC container gracefully in non-web applications 77
ApplicationContextAware and BeanNameAware ..............................................78
Other Aware interfaces ...................................................................................78
4.7. Bean definition inheritance ...............................................................................80
4.8. Container Extension Points ...............................................................................82
Customizing beans using a BeanPostProcessor .................................................82
Example: Hello World, BeanPostProcessor-style ......................................83
Example: The RequiredAnnotationBeanPostProcessor ..............................84
Customizing configuration metadata with a BeanFactoryPostProcessor ..............85
Example: the PropertyPlaceholderConfigurer ...........................................86
Example: the PropertyOverrideConfigurer ...............................................87
Customizing instantiation logic with a FactoryBean ..........................................88
4.9. Annotation-based container configuration ..........................................................89
@Required .....................................................................................................90
Spring Framework
3.1 Reference Documentation iv
剩余816页未读,继续阅读
资源评论
MarsYu
- 粉丝: 3
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功