How can I change the default location of log4j2.xml in Java Spring Boot?
问题 Log4j2 is working nicely with Spring Boot through the log4j2.xml configuration file in the root classpath, exactly as the documentation states. When trying to move this file to a different location though, I'm not able to pass the new location to Spring at startup. From the documentation: The various logging systems can be activated by including the appropriate libraries on the classpath, and further customized by providing a suitable configuration file in the root of the classpath, or in a