没有合适的资源?快使用搜索试试~ 我知道了~
首页Mastering Spring 5.0 Ranga RaoKaranam
资源详情
资源评论
资源推荐


Table of Contents
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Evolution to Spring Framework 5.0
Spring Framework
Problems with EJB
Why is Spring Framework popular?
Simplified unit testing
Reduction in plumbing code
How does Spring Framework do this magic?
Architectural flexibility
Keep up with changing times
Spring modules
Spring Core Container
Cross-cutting concerns
Web
Business
Data
Spring Projects
Spring Boot
Spring Cloud
Spring Data
Spring Batch
Spring Security
Spring HATEOAS
New features in Spring Framework 5.0
Baseline upgrades

JDK 9 runtime compatibility
Usage of JDK 8 features in Spring Framework code
Reactive programming support
Functional web framework
Java modularity with Jigsaw
Kotlin support
Dropped features
Spring Boot 2.0 new features
Summary
2. Dependency Injection
Understanding dependency injection
Understanding dependencies
The Spring IoC container
Defining beans and wiring
Creating a Spring IoC container
Java configuration for the application context
A quick review
Launching the application context with Java configuration
The console log
The XML configuration for the application context
Defining the XML Spring configuration
Launching an application context with the XML configuration
Writing JUnit using the Spring context
Unit testing with mocks
Container managed beans
Dependency injection types
The setter injection
The constructor injection
Constructor versus setter injection
Spring bean scopes
Java versus XML configuration
The @Autowired annotation in depth
The @Primary annotation
The @Qualifier annotation
Other important Spring annotations
Exploring Contexts and dependency injection
An example of CDI
Summary

3. Building a Web Application with Spring MVC
Java web application architecture
Model 1 architecture
Model 2 architecture
Model 2 Front Controller architecture
Basic flows
Basic setup
Adding dependency for Spring MVC
Adding DispatcherServlet to web.xml
Creating Spring context
Flow 1 - Simple controller flow without View
Creating a Spring MVC controller
Running the web application
Unit testing
Setting up the Controller to test
Writing the Test method
Flow 2 - Simple controller flow with a View
Spring MVC controller
Creating a View - a JSP
View resolver
Unit testing
Setting up the Controller to test
Writing the Test method
Flow 3 - Controller redirecting to a View with Model
Spring MVC controller
Creating a View
Unit testing
Setting up the Controller to test
Writing the Test method
Flow 4 - Controller redirecting to a View with ModelAndView
Spring MVC controller
Creating a View
Unit testing
Flow 5 - Controller redirecting to a View with a form
Creating a command or form backing object
The Controller method to show the form
Creating the View with a form
Controller get method to handle form submit
Unit testing

Flow 6 - Adding validation to the previous flow
Hibernate Validator dependency
Simple validations on the bean
Custom validations
Unit testing
Controller setup
The Test method
An overview of Spring MVC
Important features
How it works
Important concepts behind Spring MVC
RequestMapping
Examples of request mapping
Example 1
Example 2
Example 3
Request Mapping methods - supported method arguments
RequestMapping methods - supported return types
View resolution
Configuring JSP view resolver
Configuring Freemarker
Handler mappings and Interceptors
Defining a HandlerInterceptor
Mapping HandlerInterceptor to handlers
Model attributes
Session attributes
Putting an attribute in the session
Reading an attribute from the session
Removing an attribute from the session
InitBinders
The @ControllerAdvice annotation
Spring MVC - advanced features
Exception handling
Common exception handling across controllers
The error view
Specific exception handling in a Controller
Internationalization
Message bundle setup
Configuring a SessionLocaleResolver
剩余755页未读,继续阅读
















mywjch
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
最新资源
- Xilinx SRIO详解.pptx
- Informatica PowerCenter 10.2 for Centos7.6安装配置说明.pdf
- 现代无线系统射频电路实用设计卷II 英文版.pdf
- 电子产品可靠性设计 自己讲课用的PPT,包括设计方案的可靠性选择,元器件的选择与使用,降额设计,热设计,余度设计,参数优化设计 和 失效分析等
- MPC5744P-DEV-KIT-REVE-QSG.pdf
- 通信原理课程设计报告(ASK FSK PSK Matlab仿真--数字调制技术的仿真实现及性能研究)
- ORIGIN7.0使用说明
- 在VMware Player 3.1.3下安装Redhat Linux详尽步骤
- python学生信息管理系统实现代码
- 西门子MES手册 13 OpcenterEXCR_PortalStudio1_81RB1.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

评论1