文件名称:
Spring3 - Spring Expression Language
开发工具:
文件大小: 7mb
下载次数: 0
上传时间: 2019-04-06
详细说明:NULL
博文链接:https://orange5458.iteye.com/blog/1549551Licensed to Christian Cederquist
Spring in action
THIRD EDITION
CRAIG WALLS
MANNING
SHELTER ISLAND
Licensed to Christian Cederquist
For online information and ordering of this and other Manning books, please visit
www.manning.com.Thepublisheroffersdiscountsonthisbookwhenorderedinquantity
For more information, please contact
Special Sales Department
Manning publications co
20 Baldwin road
PO Box 261
Shelter island. ny11964
Email:ordersmanning.com
o201l by Manning Publications Co. All rights reserved
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
any form or by means electronic, mechanical, photocopying, or otherwise, without prior written
permission of the publisher
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
or all caps
the books we publish printed on acid-free paper, and we exert our best efforts to that enlohave
o Recognizing the importance of preserving what has been written, it is Manning,'s policy to
Recognizing also our responsibility to conserve the resources of our planet, Manning books
are printed on paper that is at least 15 percent recycled and processed without the use of
elemental chlorine
Manning publications co
Development editors: Sebastian Stirlin
20 Baldwin road
Copyeditor: Benjamin Berg
PO BOX 261
Proofreader: Katie tennant
Shelter island. ny11964
Typesetter: Dottie marsico
Cover designer: Marija Tudor
ISBN9781935182351
Printed in the united states of america
12345678910-MAL-161514131211
Licensed to Christian Cederquist
brief contents
PART CORE SPRING
1
Springing into action 3
2■ Wiring beans30
3 Minimizing Xml configuration in Spring 64
4 Aspect-oriented Spring 84
PART 2 SPRING APPLICATION ESSENTIALS.......o....111
5 Hitting the database 113
Managing transactions 146
7 Building web applications with Spring MVc 164
Working with Spring Web Flow 199
Securing Spring 224
PARt 3 NTEGRATING SPRING
253
10 Working with remote services 255
11 Giving spring some rest 277
12 Messaging in Spring 310
13 Managing Spring beans with JMX 333
14
Odds and ends 350
Licensed to Christian Cederquist
Licensed to Christian Cederquist
contents
reface xU
acknowledgments xvi
about this book xix
about the cover illustration xxiii
PART 1 CORE SPRING
0e600
Springing into action 3
1.1 Simplifying Java development 4
Unleashing the power of po/Os 5. Injecting dependencies 6
Applying aspects 10. Eliminating boilerplate code with
templates 15
1.2 Containing your beans 17
Working with an application context 18. A bean's life 19
1. 8 Surveying the Spring landscape 20
Spring modules 20. The spring portfolio 23
1.4 What's new in Spring 27
What's new in spring 2.5? 27. What's new in Spring 3. 0? 28
What's new in the spring portfolio? 28
1.5 Summary 29
Licensed to Christian Cederquist
CONTENTS
Wiring beans 30
2.1 Declaring beans 31
Setting up spring configuration 32. Declaring a simple
beam33· Injecting through constructors34·Bean
scoping 38. Initializing and destroying beans 39
2.2 Injecting into bean properties 41
Injecting simple values 42. Referencing other beans 43
Wiring properties with spring's p namespace 46. Wiring
collections 47. Wiring nothing(null) 52
2.3 Wiring with expressions 52
Expressing Spel fundamentals 53. Performing operations
on spEL values 56. Sifting through collections in SpEL 59
2. Summary 63
Minimizing XL configuration in spring 64
3.1 Automatically wiring bean properties 65
The four kinds of autowiring 65- Default autowiring 68
Mixing auto with explicit wiring 69
8.2 Wiring with annotations 70
Using Autowired 71 Applying standards-based autowiring
with Inject 74. Using expressions with annotation
tion 76
8.8 Automatically discovering beans 77
Annotating beans for autodiscovery 78
Filtering component-scans 79
8.4 USing Springs Java-based configuration 80
Setting up for Java-based configuration 80: Defining a
configuration class 81 Declaring a simple bean 81
Injecting with spring's ava-based configuration 82
3.5 Summary 83
Aspect-oriented spring 84
4.1 What's aspect-oriented programming? 85
Defining AoP terminology 86. Spring's AOP support 88
4.2 Selecting join points with pointcuts 91
Writing pointcuts 92. Using Spring's bean( designator 93
Licensed to Christian Cederquist
CONTENTS
4.3 Declaring aspects in XML 93
Declaring before and after advice 95. Declaring around
advice 97 Passing parameters to advice 98. Introducing
new functionality with aspects 100
4.4 Annotating aspects 102
Annotating around advice 104 Passing arguments to
annotated advice 105 Annotating introductions 106
4.5 Injecting Aspect] aspects 107
4.6 Summary 110
PART 2 SPRING APPLICATION ESSENTIALS.......111
Hitting the database 113
5. 1 Learning Springs data access philosophy 114
Getting to know Spring's data access exception hierarchy 115
Templating data access 117. Using DAO support
classes 119
5.2 Configuring a data source 121
Using NDI data sources 121 Using a pooled data
source 122. DBC driver-based data source 123
5. 8 Using JDBC with Spring 124
Tackling runaway DBC code 124. Working with DBC
templates 127
5. 4 Integrating Hibernate with Spring 132
A Hibernate overview 134 a Declaring a hibernate session
factory 134 Building spring -free Hibernate 137
5.5 Spring and the Java Persistence aPI 188
Configuring an entity manager factory 139. Writing a
PPA-based DAo 143
5.6 Summary 144
Managing transactions 146
6.1 Understanding transactions 147
Explaining transactions in only four words 148
Understanding spring's transaction management support 149
Licensed to Christian Cederquist
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.