Caused by: org.apache.logging.log4j.LoggingException: log4j-slf4j-impl cannot be present with log4j-to-slf4j

前端 未结 4 2413
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-19 10:23

In my Spring boot 2 project:

In build.gradle:

dependencies {
    implementation \'com.google.code.gson:gson:2.7\'
    imple         


        
4条回答
  •  旧时难觅i
    2021-02-19 10:46

    I excluded spring boot logging from build.gradle but issue was still occurring. It got resolved by removing org.apache.logging.log4j/log4j-slf4j-impl/2.12.1 from .classpath

提交回复
热议问题