没有合适的资源?快使用搜索试试~ 我知道了~
首页Spring框架3.0深度探索:实战指南
Spring框架3.0深度探索:实战指南
5星 · 超过95%的资源 需积分: 0 39 下载量 113 浏览量
更新于2024-07-25
1
收藏 13.16MB PDF 举报
"Spring攻略 英文第二版"
《Spring攻略(第2版)》是一本针对Spring框架3.0版的深入指南,由Gary Mak、Josh Long和Daniel Rubio三位作者共同编写,他们都是Spring领域的专家。本书旨在帮助Java、Java虚拟机、Groovy以及其他平台的开发者充分利用Spring的强大功能和革命性解决方案。Spring 3.0的发布标志着该框架的成熟,它为开发者提供了许多附加组件,以简化Java EE API的使用,并解决了Java EE未涵盖的问题。
书中详细介绍了Spring的核心框架和辅助组件,如集成、批处理、OSGi支持、Ajax和Flex集成、状态式Web应用、RESTful Web服务、富客户端UI、Google AppEngine开发、基于云的部署、消息传递、数据访问和Web服务等。此外,Spring还与其他框架(如业务过程管理、集群缓冲和网格计算)有良好的协作能力。
Grails和Spring Roo是Spring提供的两个重要工具,它们分别针对Groovy开发人员和寻求快速轻量级应用构建的Java开发者。Grails提供了一体化的架构体验,类似于Ruby on Rails,而Spring Roo则能帮助开发者快速越过原型阶段,生成清晰、面向最佳实践的代码。
本书以丰富的代码示例为基础,采用问题-解决方案的模式,引导读者掌握Spring 3的关键技术和应用场景。每个章节都包含详细的实战代码,以帮助读者将理论知识应用到实际项目中。此外,英文版的提供也为读者提供了对照阅读和理解中文翻译的可能。
《Spring攻略(第2版)》是一本全面而深入的Spring学习资料,适合不同层次的开发者,无论你是初学者还是资深开发人员,都可以从中受益。通过这本书,你可以深入了解Spring 3的各个方面,并提升在实际项目中的应用能力。
■ CONTENTS
xiv
5-7. Handling Domain Object Security ........................................................................... 208
Problem ................................................................................................................................................ 208
Solution ................................................................................................................................................ 208
How It Works ........................................................................................................................................ 209
Summary ....................................................................................................................... 218
■Chapter 6: Integrating Spring with Other Web Frameworks ............................... 219
6-1. Accessing Spring in Generic Web Applications ...................................................... 220
Problem ................................................................................................................................................ 220
Solution ................................................................................................................................................ 220
How It Works ........................................................................................................................................ 220
6-2. Using Spring in Your Servlets and Filters ............................................................... 224
Problem ................................................................................................................................................ 224
Solution ................................................................................................................................................ 225
How It Works ........................................................................................................................................ 225
6-3. Integrating Spring with Struts 1.x .......................................................................... 230
Problem ................................................................................................................................................ 230
Solution ................................................................................................................................................ 230
How It Works ........................................................................................................................................ 231
6-4. Integrating Spring with JSF .................................................................................... 237
Problem ................................................................................................................................................ 237
Solution ................................................................................................................................................ 237
How It Works ........................................................................................................................................ 238
6-5. Integrating Spring with DWR .................................................................................. 244
Problem ................................................................................................................................................ 244
Solution ................................................................................................................................................ 244
How It Works ........................................................................................................................................ 244
Summary ....................................................................................................................... 248
■ CONTENTS
xv
■Chapter 7: Spring Web Flow ................................................................................ 249
7-1. Managing a Simple UI Flow with Spring Web Flow ................................................ 249
Problem ................................................................................................................................................ 249
Solution ................................................................................................................................................ 249
How It Works ........................................................................................................................................ 250
7-2. Modeling Web Flows with Different State Types .................................................... 258
Problem ................................................................................................................................................ 258
Solution ................................................................................................................................................ 259
How It Works ........................................................................................................................................ 259
7-3. Securing Web Flows ............................................................................................... 272
Problem ................................................................................................................................................ 272
Solution ................................................................................................................................................ 273
How It Works ........................................................................................................................................ 273
7-4. Persisting Objects in Web Flows ............................................................................ 275
Problem ................................................................................................................................................ 275
Solution ................................................................................................................................................ 275
How It Works ........................................................................................................................................ 275
7-5. Integrating Spring Web Flow with JSF ................................................................... 283
Problem ................................................................................................................................................ 283
Solution ................................................................................................................................................ 283
How It Works ........................................................................................................................................ 283
7-6. Using RichFaces with Spring Web Flow ................................................................. 291
Problem ................................................................................................................................................ 291
Solution ................................................................................................................................................ 291
Approach .............................................................................................................................................. 291
Summary ....................................................................................................................... 295
■ CONTENTS
xvi
■Chapter 8: Spring @MVC ..................................................................................... 297
8-1. Developing a Simple Web Application with Spring MVC ........................................ 297
Problem ................................................................................................................................................ 297
Solution ................................................................................................................................................ 297
How It Works ........................................................................................................................................ 299
8-2. Mapping requests with @RequestMapping ........................................................... 310
Problem ................................................................................................................................................ 310
Solution ................................................................................................................................................ 311
How It Works ........................................................................................................................................ 311
8-3. Intercepting Requests with Handler Interceptors ................................................... 314
Problem ................................................................................................................................................ 314
Solution ................................................................................................................................................ 315
How It Works ........................................................................................................................................ 315
8-4. Resolving User Locales .......................................................................................... 318
Problem ................................................................................................................................................ 318
Solution ................................................................................................................................................ 319
How It Works ........................................................................................................................................ 319
8-5. Externalizing Locale-Sensitive Text Messages ...................................................... 321
Problem ................................................................................................................................................ 321
Solution ................................................................................................................................................ 321
How It Works ........................................................................................................................................ 321
8-6. Resolving Views by Names .................................................................................... 322
Problem ................................................................................................................................................ 322
Solution ................................................................................................................................................ 322
How It Works ........................................................................................................................................ 323
8-7. Views and Content Negotiation .............................................................................. 325
Problem ................................................................................................................................................ 325
Solution ................................................................................................................................................ 326
How It Works ........................................................................................................................................ 326
■ CONTENTS
xvii
8-8. Mapping Exceptions to Views ................................................................................ 329
Problem ................................................................................................................................................ 329
Solution ................................................................................................................................................ 329
How It Works ........................................................................................................................................ 329
8-9. Assigning values in a Controller with @Value ........................................................ 331
Problem ................................................................................................................................................ 331
Solution ................................................................................................................................................ 331
How It Works ........................................................................................................................................ 331
8-10. Handling Forms with Controllers .......................................................................... 333
Problem ................................................................................................................................................ 333
Solution ................................................................................................................................................ 333
How It Works ........................................................................................................................................ 333
8-11. Handling Multipage Forms with Wizard Form Controllers .................................... 348
Problem ................................................................................................................................................ 348
Solution ................................................................................................................................................ 348
How It Works ........................................................................................................................................ 349
8-12. Bean validation with Annotations (JSR-303) ........................................................ 359
Problem ................................................................................................................................................ 359
Solution ................................................................................................................................................ 359
How It Works ........................................................................................................................................ 359
8-13. Creating Excel and PDF Views .............................................................................. 362
Problem ................................................................................................................................................ 362
Solution ................................................................................................................................................ 362
How It Works ........................................................................................................................................ 362
Summary ....................................................................................................................... 369
■Chapter 9: Spring REST ........................................................................................ 371
9-1. Publishing a REST Service with Spring .................................................................. 371
Problem ................................................................................................................................................ 371
Solution ................................................................................................................................................ 371
How It Works ........................................................................................................................................ 372
■ CONTENTS
xviii
9-2. Accessing a REST Service with Spring................................................................... 376
Problem ................................................................................................................................................ 376
Solution ................................................................................................................................................ 376
How It Works ........................................................................................................................................ 377
9-3. Publishing RSS and Atom feeds ............................................................................. 381
Problem ................................................................................................................................................ 381
Solution ................................................................................................................................................ 381
How It Works ........................................................................................................................................ 382
9-4. Publishing JSON with REST services ..................................................................... 391
Problem ................................................................................................................................................ 391
Solution ................................................................................................................................................ 391
How It Works ........................................................................................................................................ 392
9-5. Accessing REST Services with Elaborate XML Responses ..................................... 394
Problem ................................................................................................................................................ 394
Solution ................................................................................................................................................ 394
How It Works ........................................................................................................................................ 394
Summary ....................................................................................................................... 404
■Chapter 10: Spring and Flex ................................................................................ 405
10-1. Getting started with Flex ...................................................................................... 406
Problem ................................................................................................................................................ 406
Solution ................................................................................................................................................ 407
How It Works ........................................................................................................................................ 407
10-2. Leaving the Sandbox ............................................................................................ 412
Problem ................................................................................................................................................ 412
Solution ................................................................................................................................................ 412
How It Works ........................................................................................................................................ 413
10-3. Adding the Spring BlazeDS support to an application .......................................... 424
Problem ................................................................................................................................................ 424
Solution ................................................................................................................................................ 424
How It Works ........................................................................................................................................ 425
剩余1104页未读,继续阅读
点击了解资源详情
点击了解资源详情
点击了解资源详情
2013-05-06 上传
2007-09-03 上传
2010-09-03 上传
2008-04-30 上传
过往记忆
- 粉丝: 4400
- 资源: 274
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- microsoft office sharepoint server 2007 安装图解
- 指针经验总结(经典%2C非常详细)
- Arguments是进行函数调用.doc
- ASP.NET ToString()格式大全
- <测试用例设计指南>
- PERL正则表达式讲解.pdf
- JSF实战 JavaServer Faces In Action
- VC++串口编程(pdf)
- Nios设计从入门到精通.pdf
- mysql自动备份脚本
- Flex体系架构深度剖析----下载不扣分,回帖加1分,欢迎下载,童叟无欺
- KEILμversion2学习笔记
- MINIGUI-PROG-GUIDE-V2.0-4C
- NVIDIA CUDA Programming Guide 2.0 Final.pdf
- Hibernate实践 DB操作
- 常用的的电子器件图片介绍
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功