5,655
社区成员
发帖
与我相关
我的任务
分享
27-Nov-2016 15:47:52.830 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/apache-tomcat-8.0.33/webapps/ROOT/WEB-INFb/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/apache-tomcat-8.0.33/webapps/ROOT/WEB-INFb/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
--------server is start
[15:47:53|INFO |(org.springframework.web.context.ContextLoader)]=[Root WebApplicationContext: initialization started]
意思是版本冲突了?然后根据这个上面的提示线索进入http://www.slf4j.org/codes.html#multiple_bindings看到这上面说
SLF4J API is designed to bind with one and only one underlying logging framework at a time. If more than one binding is present on the class path, SLF4J will emit a warning, listing the location of those bindings.
When multiple bindings are available on the class path, select one and only one binding you wish to use, and remove the other bindings
好吧,感觉找到地方了。然后我删掉了其中一个带有log4j的jar包
rm slf4j-log4j12-1.7.5.jar
再启动。没报错。
再到配置的文件夹下面看,果然想要的日志都出来了~~~
特此回帖记录,给自己也给后面的人警醒,哪怕一个warn一个不是错误的日志都不要放过