slf4j报错

maven 打包报错:Failed to load class "org.slf4j.impl.StaticLoggerBinder".

解决方法:

xml中加入依赖   


 <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jcl-over-slf4j</artifactId>
        <version>1.7.0</version>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.7.0</version>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>1.7.0</version>
        <scope>runtime</scope>
    </dependency>

posted on 2018-03-09 19:27  张&娟  阅读(251)  评论(0编辑  收藏  举报

导航