最近在部署项目(linux系统)的时候发现一个问题,log日志不输出,又不报错,但是在本地开发环境(windows 7)可输出,后来网上搜了一下,原来是报了jar包冲突的错误。
下面这段就是报错的日志,其中logback-classic-1.1.2.jar和activemq-all-5.14.0.jar冲突:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/dev/m2/repository/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/dev/m2/repository/org/apache/activemq/activemq-all/5.14.0/activemq-all-5.14.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
所以就针对ActiveMQ和logback日志冲突的问题,找到了答案,原来是activemq-all的问题,so就改一下activemq需要引用的jar包吧!!
由
<dependency>
<gro