spring-cloud-commons
spring-cloud-commons copied to clipboard
LoggingSystemShutdownListener ClassLoader
Use the ClassLoader from the SpringApplication if available.
This is related to https://github.com/spring-projects/spring-boot/issues/26126. If the SpringApplication is created with a different classloader that can create issues for the LoggingSystemShutdownListener since it may end up using a different classloader than the one the SpringApplication is using.