Migrate CookieLocaleResolver#setCookieMaxAge(Integer) to Duration
ProprietaryCookieLocaleResolver#setCookieMaxAge(Integer) was deprecated in Spring Framework 6.0 and removed in Spring Framework 7.0, leaving only the Duration overload. This recipe wraps the seconds argument in Duration.ofSeconds(..).
io. moderne. java. spring. framework7. MigrateCookieLocaleResolverCookieMaxAgemod run . --recipe= io. moderne. java. spring. framework7. MigrateCookieLocaleResolverCookieMaxAgeInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.