forked from spring-projects/spring-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrading to Spring Framework 6.x
Rossen Stoyanchev edited this page Dec 15, 2021
·
109 revisions
This page provides guidance on upgrading to Spring Framework 6.0.
Spring MVC and Spring WebFlux no longer detect controllers based solely on a type-level @RequestMapping
annotation. That means interfaced based AOP proxying for web controllers may no longer work. Please,
enable class based proxying for such controllers or otherwise the interface must also have @Controller,
see 22154.
HttpMethod is a class and no longer an enum. Though the public API has been maintained, some
migration might be necessary (i.e. change from EnumSet<HttpMethod> to Set<HttpMethod>, use if else instead of switch). For the rationale behind this decision, see
27697.