Book description
Unleash the power of the latest Spring MVC 4.x to develop a complete application
About This Book
- Work through carefully crafted exercises with detailed explanations for each step will help you understand the concepts with ease
- You will gain a clear understanding of the end-to-end request/response life cycle, and each logical component’s responsibility
- This book is packed with tips and tricks that demonstrate industry best practices on developing a Spring-MVC-based application
Who This Book Is For
The book is for Java developers who want to exploit Spring MVC and its features to build web applications. Some familiarity with basic servlet programming concepts would be a plus, but is not a prerequisite.
What You Will Learn
- Familiarize yourself with the anatomy of the Spring 4.X development environment
- Understand web application architecture and the Spring MVC request flow
- Integrate bean validation and custom validation
- Use error handling and exception resolving
- Get to grips with REST-based web service development and Ajax
- Test your web application
In Detail
Spring MVC helps you build flexible and loosely coupled web applications. The Spring MVC Framework is architected and designed in such a way that every piece of logic and functionality is highly configurable. Also, Spring can integrate effortlessly with other popular web frameworks such as Struts, WebWork, Java Server Faces, and Tapestry.
The book progressively teaches you to configure the Spring development environment, architecture, controllers, libraries, and more before moving on to developing a full web application. It begins with an introduction to the Spring development environment and architecture so you're familiar with the know-hows. From here, we move on to controllers, views, validations, Spring Tag libraries, and more. Finally, we integrate it all together to develop a web application. You'll also get to grips with testing applications for reliability.
Style and approach
This book takes a pragmatic step-by-step approach to web application development using Spring MVC, with informative screenshots and concise explanation.
Publisher resources
Table of contents
-
Spring MVC Beginner's Guide - Second Edition
- Spring MVC Beginner's Guide - Second Edition
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
- 1. Configuring a Spring Development Environment
-
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
- Summary
- 3. Control Your Store with Controllers
- 4. Working with Spring Tag Libraries
- 5. Working with View Resolver
- 6. Internalize Your Store with Interceptor
- 7. Incorporating Spring Security
- 8. Validate Your Products with a Validator
- 9. Give REST to Your Application with Ajax
- 10. Float Your Application with Web Flow
- 11. Template with Tiles
- 12. Testing Your Application
- Appendix A. Using the Gradle Build Tool
-
Appendix B. Pop Quiz Answers
- Chapter 2, Spring MVC Architecture - Architecting Your Web Store
- Chapter 3, Control Your Store with Controllers
- Chapter 4, Working with Spring Tag Libraries
- Chapter 5, Working with View Resolver
- Chapter 6, Internalize Your Store with Interceptor
- Chapter 7, Incorporating Spring Security
- Chapter 10, Float Your Application with Web Flow
- Chapter 11, Template with Tiles
Product information
- Title: Spring MVC Beginner’s Guide
- Author(s):
- Release date: July 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785880636
You might also like
book
Spring MVC Beginner’s Guide
Your ultimate guide to building a complete web application using all the capabilities of Spring MVC …
video
Spring MVC For Beginners
Developing your first Spring MVC web application is fun. In this course, you will learn the …
book
Spring MVC Cookbook
Over 40 recipes for creating cloud-ready Java web applications with Spring MVC About This Book Configure …
book
Spring MVC: Designing Real-World Web Applications
Unleash the power of Spring MVC and build enterprise-grade, lightning-fast web applications About This Book Configure …