Tôi gặp vấn đề với cây phụ thuộc và nhiều ràng buộc SLF4J. Những gì tôi phát hiện ra cho đến nay là thường này chỉ gây ra một cảnh báo nhưng trong trường hợp của tôi có vẻ như để ngăn chặn chương trình của tôi từ chạy: Đây là những trường hợp ngoại lệ tôi nhận được:Nhiều liên kết SLF4J gây ra lỗi?
SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/FischerNi/.m2/repository/org/slf4j/slf4j-jdk14/1.5.3/slf4j-jdk14-1.5.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/FischerNi/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding. SLF4J: Your binding is version 1.5.5 or earlier. SLF4J: Upgrade your binding to version 1.6.x. or 2.0.x Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;
và đây là mảnh liên quan của tôi phụ thuộc: net.lightbody.bmp browsermob-proxy 2.0 beta-8
<!-- LOGGING DEPENDENCIES - LOG4J -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
ai đó có thể vui lòng cho tôi biết làm thế nào để giải quyết vấn đề này?
Bạn đang bao gồm 'slf4j-log4j12' nhiều lần (trực tiếp hoặc gián tiếp thông qua một phụ thuộc khác) với các phiên bản khác nhau (1.5.3 và 1.6.1, theo thông báo lỗi). – Jesper