更新时间:2021-07-14 10:50:06
封面
版权页
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Conventions
Reader feedback
Customer support
Chapter 1. Configuring a Spring Development Environment
Setting up Java
Configuring a build tool
Installing a web server
Configuring a development environment
Creating our first Spring MVC project
Spring MVC dependencies
A jump-start to MVC
The Dispatcher servlet
Deploying our project
Summary
Chapter 2. Spring MVC Architecture – Architecting Your Web Store
Dispatcher servlet
Understanding the Dispatcher servlet configuration
Servlet mapping versus request mapping
Web application context
View resolvers
Understanding the web application context configuration
Model View Controller
Overview of the Spring MVC request flow
The web application architecture
The Domain layer
The Persistence layer
The Service layer
An overview of the web application architecture
Chapter 3. Control Your Store with Controllers
The role of a Controller in Spring MVC
Defining a Controller
Default request mapping method
Handler mapping
Using URI template patterns
Using matrix variables
Understanding request parameters
Chapter 4. Working with Spring Tag Libraries
The JavaServer Pages Standard Tag Library
Serving and processing forms
Customizing data binding
Externalizing text messages
Chapter 5. Working with View Resolver
Resolving Views
RedirectView
Flash attribute
Serving static resources
Multipart requests in action
Using ContentNegotiatingViewResolver
Working with HandlerExceptionResolver
Chapter 6. Internalize Your Store with Interceptor
Working with interceptors
LocaleChangeInterceptor - internationalization
Mapped interceptors
Chapter 7. Incorporating Spring Security
Using Spring Security
Chapter 8. Validate Your Products with a Validator
Bean Validation
Custom validation with JSR-303/Bean Validation
Spring validation
Chapter 9. Give REST to Your Application with Ajax
Introduction to REST
Handling web services in Ajax
What just happened?
Chapter 10. Float Your Application with Web Flow
Working with Spring Web Flow
Understanding flow definitions
Understanding checkout flow
Chapter 11. Template with Tiles
Enhancing reusability through Apache Tiles
Chapter 12. Testing Your Application
Unit testing
Integration testing with the Spring Test context framework
Thank you readers!
Appendix Appendix A. Using the Gradle Build Tool
Installing Gradle
The Gradle build script for your project
Understanding the Gradle script