Use org.springframework.boot.web.servlet.support.SpringBootServletInitializer

MSAL

Use org.springframework.boot.web.servlet.support.SpringBootServletInitializer instead of the deprecated org.springframework.boot.web.support.SpringBootServletInitializer in Spring Boot 1.4 or higher.

org.openrewrite.java.spring.boot2.MigrateSpringBootServletInitializerPackageName
mod run . --recipe=org.openrewrite.java.spring.boot2.MigrateSpringBootServletInitializerPackageName

Install 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.

  1. Change type org.springframework.boot.web.support.SpringBootServletInitializer to org.springframework.boot.web.servlet.support.SpringBootServletInitializer