Applications using logging shutdown hooks
MSALSpring Boot registers a logging shutdown hook by default for JAR-based applications to ensure that logging resources are released when the JVM exits. If your application is deployed as a WAR then the shutdown hook is not registered since the servlet container usually handles logging concerns.
Most applications will want the shutdown hook. However, if your application has complex context hierarchies, then you may need to disable it. You can use the logging.register-shutdown-hook property to do that.
org. openrewrite. java. spring. boot2. search. LoggingShutdownHooksmod run . --recipe= org. openrewrite. java. spring. boot2. search. LoggingShutdownHooksInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.