From the course: Complete Guide to Spring MVC

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Advanced configuration

Advanced configuration

- [Instructor] Advanced configuration. In Spring MVC, advanced configuration mode offers more control over the configuration of your application, allowing you to bypass the default behavior provided by the enable web MC annotation. This is done by directly extending the delegating web MVC configuration class, giving you full access to the internal configuration infrastructure of Spring MVC. Let's look at how default Spring MVC configuration works. When using enable web MVC annotation, Spring automatically configures a default setup by importing delegating web MVC configuration. This class is responsible for setting up the default configuration for Spring MVC, including the various beans, like request mapping, handler mapping, handler adapter, and handler exception resolver. And then another step that is automatically configured in this default setup is detecting web MVC configure implementations. Any web MVC configure implementation available in the class path are automatically picked…

Contents