通過排查,發現項目裏面的日誌組件是logback, slf4j的一個實現方式。有效日誌以下所示。html
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/app/tomcat_m/webapps/ROOT/WEB-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/app/tomcat_m/webapps/ROOT/WEB-INF/lib/logback-classic-1.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
因此 ,有效信息就出來了啊,一個藉口對應了多個實現,解決方法so easy,刪掉了多餘的那個jar包。java
slf4j-log4j12-1.6.1.jar