Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar

Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError

 

 

 

解决方法

           <exclusions>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
                <exclusion>
                    <artifactId>log4j-over-slf4j</artifactId>
                    <groupId>org.slf4j</groupId>
                </exclusion>
                <exclusion>
                <artifactId>slf4j-log4j12</artifactId>
                <groupId>org.slf4j</groupId>
                </exclusion>
                <exclusion>
                <artifactId>log4j</artifactId>
                <groupId>log4j</groupId>
                </exclusion>                
            </exclusions>

 

posted @ 2018-02-01 11:03  南风叶  阅读(1152)  评论(0编辑  收藏  举报