Migrate deprecated APIs removed in Spring Framework 7.0
ProprietaryMigrates deprecated APIs that were removed in Spring Framework 7.0. This includes ContentCachingRequestWrapper constructor changes, CookieLocaleResolver cookie name and max age configuration, NoResourceFoundException constructor changes, and NestedServletException to ServletException type migration.
io. moderne. java. spring. framework7. MigrateDeprecatedAPIsmod run . --recipe= io. moderne. java. spring. framework7. MigrateDeprecatedAPIsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Migrate
CookieLocaleResolver#setCookieName(String)to the constructor - Migrate
CookieLocaleResolver#setCookieMaxAge(Integer)toDuration - Add a literal method argument 1 in methods
org.springframework.web.util.ContentCachingRequestWrapper <constructor>(jakarta.servlet.http.HttpServletRequest) - Migrate
NoResourceFoundExceptionconstructor for Spring Framework 7.0 - Migrate removed
LastModifiedsupport - Change type
NestedServletExceptiontoServletException