Java Maven-SLF4J:类路径在Spring引导中包含多个SLF4J绑定

Java Maven-SLF4J:类路径在Spring引导中包含多个SLF4J绑定,java,spring,maven,spring-boot,Java,Spring,Maven,Spring Boot,我在Spring Boot Maven应用程序中获得以下信息: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/..../.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4

我在Spring Boot Maven应用程序中获得以下信息:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/..../.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/..../.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.10.0/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
使用以下与登录POM.XML相关的依赖项:

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.0.RELEASE</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>

    <!-- Logging -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter</artifactId>
                <exclusions>
                    <exclusion>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-starter-logging</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-log4j -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-log4j</artifactId>
                <version>1.3.8.RELEASE</version>
            </dependency>

org.springframework.boot
spring启动程序父级
2.0.0.1版本
org.springframework.boot
弹簧靴起动器
org.springframework.boot
spring启动程序日志记录
org.springframework.boot
spring-boot-starter-log4j
1.3.8.1发布
我已经尝试手动删除这些罐子,即使我仍然面临这个问题,并且在同一个问题上发现了一些博客,但这些都不适合我


有人能帮我一下吗。

你能展示一下你的完整pom文件吗……还有,你为什么要定义spring-boot-starter-log4j的版本?如果没有定义版本,那么就得到错误。谢谢@khmarbaiseThan我想你的pom中还有其他问题?您是否使用SpringBootStarter家长?是的,请在上面的帖子中找到家长。谢谢@khmarbaisedd你解决了吗?