Spring MVC Optimization

In the previous chapter, we learned about the Spring Aspect-Oriented Programming (AOP) module, AOP concepts, its various terminologies, and how to implement advice. We also saw the proxy concept and its implementation using the proxy pattern. We went through the best practices to follow to achieve quality and performance with the Spring AOP.

Spring MVC is the most popular Java web application framework nowadays. It is provided by Spring itself. Spring Web MVC helps to develop a flexible and loosely coupled web-based application. Spring MVC follows the Model-View-Controller (MVC) pattern, which separates the input logic, business logic, and presentation logic while providing loose coupling between components. The Spring MVC module allows us to write a test case without using the request and response object in the web application. So, it removes the overhead of testing the web components in the enterprise application. Spring MVC also supports multiple new view technologies and allows for extending. Spring MVC provides a clear definition of roles for controllers, view resolvers, handler mappings, and POJO beans, which makes it simple to create Java web applications.

In this chapter, we will learn about the following topics:

  • Spring MVC configuration
  • Spring asynchronous processing, @Async annotation
  • CompletableFuture with Spring Async
  • Spring Security configuration
  • Authentication cache
  • Fast and stateless API authentication with Spring Security
  • Monitoring and managing Tomcat with JMX
  • Spring MVC performance improvements
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset