Book description
Design and implement real-world web-based applications using the Spring Framework 4.x specification based on technical documentation
About This Book
- Learn all the details of implementing Spring 4.x MVC applications from basic core platform construction to advanced integration implementations
- Gain a complete reference guide to implementing the controllers, models, views, view resolvers, and other service-related components to solve various real-world problems
- Discover the possible optimal solutions for developers and experts to build enterprise and personal web-based applications
- Create a Spring MVC application that has a validation process and exception handling with the HTTP status codes
Who This Book Is For
This book is for competent Spring developers who wish to understand how to develop complex yet flexible applications with Spring MVC. You must have a good knowledge of JAVA programming and be familiar with the basics of Spring.
What You Will Learn
- Set up and configure the Spring 4.x MVC platform from ground level up using the basic Spring Framework 4.x APIs
- Study requirements and manage solutions on file uploading transactions in Spring 4.x applications Configure, , and test Spring integration to the Hibernate, MyBatis, and JPA frameworks for database transactions
- Properly implement exception handlers and audit trails in Spring MVC applications
- Generate reports using JFreeChart, Google Charts, JasperReports, DynamicReports, FreeMarker, Velocity, and Spring's API known as ContentNegotiatingViewResolver
- Configure security and flexibility by adding Captcha, Spring Security, Spring Flow, Spring Portlets, JTA to improve data management performance
- Implement web services using Spring's RESTful implementation and other service-oriented integration plugins
- Design and implement a Spring 4.x application using AngularJS, ExtJs, Twitter Bootstrap, and Spring Mobile for responsive web design
In Detail
Spring MVC is the ideal tool to build modern web applications on the server side. With the arrival of Spring Boot, developers can really focus on the code and deliver great value, leveraging the rich Spring ecosystem with minimal configuration.
Spring makes it simple to create RESTful applications, interact with social services, communicate with modern databases, secure your system, and make your code modular and easy to test. It is also easy to deploy the result on different cloud providers.
This book starts all the necessary topics in starting a Spring MVC-based application. Moving ahead it explains how to design model objects to handle file objects. save files into a data store and how Spring MVC behaves when an application deals with uploading and downloading files. Further it highlights form transactions and the user of Validation Framework as the tool in validating data input. It shows how to create a customer feedback system which does not require a username or password to log in. It will show you the soft side of Spring MVC where layout and presentation are given importance. Later it will discuss how to use Spring Web Flow on top of Spring MVC to create better web applications. Moving ahead, it will teach you how create an Invoice Module that receives and transport data using Web Services
By the end of the book you will be able to create efficient and flexible real-time web applications using all the frameworks in Spring MVC.
Style and approach
This book is a compendium of technical specification documents that will guide you through building an application using Spring 4.x MVC. Each chapter starts with a high-level wireframe design of the software followed by how to set up and configure different libraries and tools.
Table of contents
-
Spring MVC Blueprints
- Spring MVC Blueprints
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
-
1. Creating a Personal Web Portal (PWP)
- Overview of the project
- Technical requirements
- Setting-up the development environment
- The pom.xml file
- Project deployment
- Project libraries and dependencies
- Overview of the Spring MVC specification
- The project development
- Creating the Spring container
- Configuring the Spring container
- The Personal Web Portal (PWP) project
- Challenge yourself
- Summary
-
2. Electronic Document Management Systems (EDMS)
- Overview of the project
- Technical requirement
-
The project development
- Configuring the DispatcherServlet
- Creating the Spring container
- Creating exception handling for multipart requests
-
Creating the controllers
- Uploading a single document
- Uploading multiple documents
- Uploading single or multiple documents into the FTP server
- Uploading single or multiple files asynchronously
- Uploading documents with encryption/decryption
- Downloading individual documents from the file system
- Downloading individual documents from the FTP server
- The form domains
- The views
- The validators
- The EDMS project
- Challenge yourself
- Summary
-
3. Student Management Portal (SMP)
- An overview of the project
- Technical requirements
- Software design overview
- Configuring the DispatcherServlet
- Creating the Spring containers
- The Data Access Object (DAO) layer
- The service layer
- The data domain layer
- The controllers
- The validators and type conversion
- The interceptors
- The Aspect, Advice and PointCut
- The views
- The Student Management Portal (SMP)
- Challenge yourself
- Summary
-
4. Human Resource Management System (HRMS)
- Overview of the project
- Technical requirements
- The HRMS database
- Data modeling framework
- Integrating charts and graphs
-
Integrating reports
- PDF document generation using iText 5.x
- Excel sheet generation using POI
- Excel sheet generation using JExcelAPI
- Report generation using JasperReports
- Report generation using DynamicReports
- Report generation using ContentNegotiatingViewResolver
- Generating reports using HTML
- Generating news feeds
- Handling exceptions
- Software testing
- JVM memory management
- Client-side visualization
- The Human Resource Management System (HRMS)
- Challenge yourself
- Summary
- 5. Customer Feedback System (CFS)
-
6. Hotel Management System (HMS)
- Overview of the project
- Technical Requirements
- The HMS Database
- User Experience (UX) design issues
- Designing themes
- Creating intelligent web components
- Creating web layouts
- Spring's internationalization support
- Velocity, FreeMarker, and Rhythm
- Spring mobile
- Challenge yourself
- Summary
-
7. Online Cart System (OCS)
- Overview of the project
- Technical requirements
- The OCS database
- The software prototypes
-
Spring security implementation
- Configuring the DelegatingFilterProxy
-
Creating the security beans
- The <http> tag
- The custom login page
- Non-Restricted views
- Restricted views
- Roles and permissions
- Authentication filter processing
- Authentication manager
- The UserDetailServiceDao
- Password encoding
- Authentication failure and success handlers
- Session management
- Session timeout
- URL rewriting
- Access denied page
- Session fixation protection
- Cross-site request forgery
- Custom logout page
- Post-login transaction
- Transaction management using JTA
- Process and navigation management
- Variable scopes
- Spring MVC portlet
- OCS as a portal
- Application context configuration
- Spring Cache
- Hot deployment using JRebel
- Summary
-
8. Enterprise Resource Planning (ERP)
- Overview of the project
- Technical requirement
- The ERP databases
- Data modeling framework
-
The concept of web services
- Consumer-producer relationship
- The Spring REST architecture
- The Spring-WS Framework
- JAX-WS
- JAX-RS (RESTful) web services
- Axis2 web service implementation
- CXF web service implementation
- XFire web service implementation
- HttpInvoker, Burlap, and Hessian remoting
- Remote Method Invocation
- JMS using ApacheMQ
- AMQP using RabbitMQ
- Spring Social
- The ERP
- Challenge yourself
- Summary
- 9. Bus Ticketing System (BTS)
- 10. Social Task Management System (STMS)
Product information
- Title: Spring MVC Blueprints
- Author(s):
- Release date: July 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785888274
You might also like
book
Spring MVC Cookbook
Over 40 recipes for creating cloud-ready Java web applications with Spring MVC About This Book Configure …
book
Spring Recipes: A Problem-Solution Approach, Third Edition
Spring Recipes: A Problem-Solution Approach, Third Edition builds upon the best-selling success of the previous editions …
book
The Definitive Guide to Terracotta: Cluster the JVM™ for Spring, Hibernate, and POJO Scalability
Get the definitive guide on all the fundamentals of Terracotta as well as user secrets, recipes, …
book
Pro Spring MVC: With Web Flow
Pro Spring MVC provides in-depth coverage of Spring MVC and Spring Web Flow, two highly customizable …