Use org.springframework.boot.web.servlet.error.ErrorController

MSAL

Use org.springframework.boot.web.servlet.error.ErrorController instead of the deprecated org.springframework.boot.autoconfigure.web.ErrorController in Spring Boot 2.0 or higher.

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

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.autoconfigure.web.ErrorController to org.springframework.boot.web.servlet.error.ErrorController