且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

由于log4j而导致使用logback

更新时间:2023-09-13 09:27:04

由于在您的项目或其他继承的项目中已经存在SLF4J的依赖关系,因此在运行时可能会发生冲突.在我的POM文件中添加排除项对我有用:

Due to an already existing dependency of SLF4J in your project or in some other inherited project, there might be conflicts during runtime. Adding an exclusion to my POM file worked for me:

    <exclusions>
        <exclusion>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
        </exclusion>
    </exclusions>