Replace ServletRequest.getRealPath(String) with getServletContext().getRealPath(String)
MSALReplace the removed getRealPath(String) on jakarta.servlet.ServletRequest and jakarta.servlet.ServletRequestWrapper with getServletContext().getRealPath(String).
org. openrewrite. java. migrate. jakarta. UpdateGetRealPathmod run . --recipe= org. openrewrite. java. migrate. jakarta. UpdateGetRealPathInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.