Read servlet web server factory settings through getSettings()
ProprietarySpring Boot 4.0 moved the servlet web server factory getters onto ServletWebServerSettings, reachable through ConfigurableServletWebServerFactory.getSettings(). Calls such as factory.getMimeMappings() become factory.getSettings().getMimeMappings(). The setters and getContextPath() remain on the factory, and are left alone.
io. moderne. java. spring. boot4. ReplaceServletWebServerFactoryGettersmod run . --recipe= io. moderne. java. spring. boot4. ReplaceServletWebServerFactoryGettersInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.