In this section, we will discuss about advanced features related to Spring MVC, including the following:
- How do we implement generic exception handling for the web application?
- How do we internationalize messages?
- How do we write integration tests?
- How do we expose static content and integrate with frontend frameworks like Bootstrap?
- How do we secure our web application with Spring Security?
Exception handling is one of the critical parts of any application. It is very important to have a consistent exception handling strategy across the application. One of the popular misconceptions is that only bad applications need exception handling. Nothing can be further from the truth. Even well-designed, well-written applications need good exception handling.
Before the emergence of the Spring Framework, exception handling code was needed across application code due to the wide use of checked exceptions. For example, most of the JDBC methods threw checked...