Merge branch '2.7.x'

This commit is contained in:
Moritz Halbritter
2022-02-10 13:39:22 +01:00
7 changed files with 183 additions and 7 deletions

View File

@@ -12,13 +12,21 @@ The following code shows a typical `@RestController` that serves JSON data:
include::code:MyRestController[]
"`WebMvc.fn`", the functional variant, separates the routing configuration from the actual handling of the requests, as shown in the following example:
include::code:MyRoutingConfiguration[]
include::code:MyUserHandler[]
Spring MVC is part of the core Spring Framework, and detailed information is available in the {spring-framework-docs}/web.html#mvc[reference documentation].
There are also several guides that cover Spring MVC available at https://spring.io/guides.
TIP: You can define as many `RouterFunction` beans as you like to modularize the definition of the router.
Beans can be ordered if you need to apply a precedence.
[[web.servlet.spring-mvc.auto-configuration]]
==== Spring MVC Auto-configuration
Spring Boot provides auto-configuration for Spring MVC that works well with most applications.
The auto-configuration adds the following features on top of Spring's defaults: