Deploy multiple springboot modules under tomcat at the same time, only one module generates logback log files

Specific scene:

  Multiple projects are deployed under the same tomcat. Since the jars between each project are roughly the same, in order to reduce space consumption and facilitate the management of jars, I adopt a unified management method of jars, and put common jars in the tomcat container layer for loading ( load) to achieve unified management of jars.

question:

  Multiple projects start normally under tomcat, but only the first project generates logback log files.

Solution:

  Put the logback-core, logback-classic, and slf4j-api jars back into each project.

 

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325250278&siteId=291194637