3
回答
SLF4J: Class path contains multiple SLF4J bindings.?gradle-core-2.6.jar, slf4j-log4j12-1.7.5.jar?
【腾讯云】学生服务器套餐10元/月 >>>   

IntelliJ IDEA -- Run/Debug configuration -- Gradle Task jettyRun报错, 但正常在命令行./gradlew jettyRun正常!

IntelliJ IDEA -- Run/Debug configuration -- Gradle Task jettyRun

报错信息:

下午11:02:49: Executing external task 'jettyRun'...

:common:compileJava UP-TO-DATE
:common:processResources UP-TO-DATE
:common:classes UP-TO-DATE
:common:jar UP-TO-DATE
:plugin:compileJava UP-TO-DATE
:plugin:processResources UP-TO-DATE
:plugin:classes UP-TO-DATE
:plugin:jar UP-TO-DATE
:x:compileJava UP-TO-DATE
:x:processResources UP-TO-DATE
:x:classes UP-TO-DATE
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/gameover/.gradle/wrapper/dists/gradle-2.6-all/2j4sg4877lcsg31diboouhun8/gradle-2.6/lib/gradle-core-2.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/gameover/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.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]
log4j:WARN No appenders could be found for logger (org.apache.ibatis.logging.LogFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.6-all.zip'.

下午11:03:24: External task execution finished 'jettyRun'.

./gradlew jettyRun

信息 但可以运行成功!

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/gameover/.gradle/wrapper/dists/gradle-2.6-all/2j4sg4877lcsg31diboouhun8/gradle-2.6/lib/gradle-core-2.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/gameover/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.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]


BUILD SUCCESSFUL


Total time: 16.098 secs


举报
_beaman
发帖于2年前 3回/837阅
顶部