SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xing930408/article/details/86616544

一个web项目在idea启动正常,但是打成war包后,在linux启动时,报错如下:

SLF4J: Class path contains multiple SLF4J bindings.
     29 SLF4J: Found binding in [jar:file:/home/wy/tomcat/webapps/ft-gateway-front/WEB-INF/lib/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
     30 SLF4J: Found binding in [jar:file:/home/wy/tomcat/webapps/ft-gateway-front/WEB-INF/lib/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]

解决方法就是把slf4j-log4j12这个排除掉

猜你喜欢

转载自blog.csdn.net/xing930408/article/details/86616544
今日推荐