gpt4 book ai didi

java - SLF4J:类路径包含多个SLF4J绑定(bind);排除 slf4j

转载 作者:行者123 更新时间:2023-12-01 21:37:13 24 4
gpt4 key购买 nike

我正在尝试使用 OpenIMAJ 加载视频。它确实显示视频,但总是向我显示此错误:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/MaryLu/.m2/repository/ch/qos/logback/logback-classic/1.0.0/logback-classic-1.0.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/MaryLu/.m2/repository/org/slf4j/slf4j-log4j12/1.7.2/slf4j-log4j12-1.7.2.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 [ch.qos.logback.classic.selector.DefaultContextSelector]
16/04/24 20:39:57 INFO xuggle.XuggleVideo: URL file:/F:/workspaceMaven/keyboardcat.flv could not be opened by ffmpeg. Trying to open a stream to the URL instead.
20:39:57.984 [main] DEBUG com.xuggle.xuggler - Could not open output url: file:/F:/workspaceMaven/keyboardcat.flv (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:436)

我已经检查了类似的问题,但我没有设法解决问题。如果我理解,我需要在 POM.xml 中的某个位置排除 slf4j,但我真的不知道哪个依赖项。

最佳答案

答案已在您的日志文件中给出。按照教程进行操作。

http://www.slf4j.org/codes.html#multiple_bindings

Wouter声明

运行 mvn dependency:tree 并搜索哪个依赖项具有您不想要的 slf4j 实现,然后使用依赖项排除来排除它们,例如:

<dependency>
<groupId>org.someexternallib</groupId>
<artifactId>someexternallibartifact</artifactId>
<version>...</version>

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

关于java - SLF4J:类路径包含多个SLF4J绑定(bind);排除 slf4j,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36827420/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com