请问各位我在使用slf4j的时候问题提示
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/G:/webgame-api/slf4j-1.5.8/slf4j-nop-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/G:/webgame-api/slf4j-1.5.8/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/G:/webgame-api/slf4j-1.5.8/slf4j-jcl-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/G:/webgame-api/slf4j-1.5.8/slf4j-jdk14-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/G:/webgame-api/slf4j-1.5.8/slf4j-simple-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.请问这是什么原因呢!!
slf4j与mina框架联合使用的!!!

解决方案 »

  1.   

    说明在classpath下出现了多个binding的实现,你只留一个就好了。file:/G:/webgame-api/slf4j-1.5.8/slf4j-nop-1.5.8.jar
    file:/G:/webgame-api/slf4j-1.5.8/slf4j-log4j12-1.5.8.jar
    file:/G:/webgame-api/slf4j-1.5.8/slf4j-jcl-1.5.8.jar
    file:/G:/webgame-api/slf4j-1.5.8/slf4j-jdk14-1.5.8.jar
    file:/G:/webgame-api/slf4j-1.5.8/slf4j-simple-1.5.8.jar如果你对commons-logging或者log4j12不熟悉,就留slf4j-jdk14吧,这个是jdk14自带的日志框架。
      

  2.   

    file:/G:/webgame-api/slf4j-1.5.8/slf4j-nop-1.5.8.jar
    file:/G:/webgame-api/slf4j-1.5.8/slf4j-log4j12-1.5.8.jar
    file:/G:/webgame-api/slf4j-1.5.8/slf4j-jcl-1.5.8.jar
    file:/G:/webgame-api/slf4j-1.5.8/slf4j-jdk14-1.5.8.jar
    file:/G:/webgame-api/slf4j-1.5.8/slf4j-simple-1.5.8.jar
    这些包也没再Eclipse Hibernate中,用这样改么?
      

  3.   

    仅需要加入
    slf4j-api-1.5.2.jar
    slf4j-simple-1.5.2.jar
    这两个包