帮助中心 >  技术知识库 >  云服务器 >  服务器教程 >  SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Class path contains multiple SLF4J bindings.

2017-12-08 11:04:23 6930

启动项目,服务器用的是resin 3.0 ,在启动的时候 ,eclipse的console中用红色的字体,提示:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/........../lib/slf4j-log4j12-1.5.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/........../slf4j-log4j12-1.5.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.landui.com/codes.html#multiple_bindings for an explanation.


从中筛选出信息,multiple_bindings  ,slf4j-log4j12-1.5.10.jar,以及Class path contains multiple SLF4J bindings.,

说明是这个jar包跟其他的class path 中包含的与此类似的jar包重复了,所以,应该去掉对应的jar包,

在对应的项目上,右键--->属性(Properties)--->Java Build Path  然后选择Libraries 页签,然后会发现slf4j 与这个相关的包会有重复,去掉一个。


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: