SLF4J: Class path contains multiple SLF4J bindings.

库冲突导致的异常,由于多次引入SLF4j包导致。

It seems you have several implementation of SLF4J; you should exclude all the not necessary ones

 

maven项目的解决方法:

 

通过mvn dependency:tree命令,确定那些库使用了SLF4j,然后选择一个,其他的使用exclusions排除。

 

最后发现是slf4j-simple 与slf4j冲突。

 

posted @ 2016-12-10 19:02  bigbigtree  阅读(1429)  评论(0编辑  收藏  举报