SLF4J: Class path contains multiple SLF4J bindings
来源:互联网 发布:圣剑网络游戏厅 编辑:程序博客网 时间:2024/06/05 07:24
问题描述
SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/E:/maven/mavenrepo/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/E:/maven/mavenrepo/org/apache/logging/log4j/log4j-slf4j-impl/2.7/log4j-slf4j-impl-2.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
原因:SLF4J绑定了多个实现类
解决办法
去除多余的实现类
在pom.xml排除多余的包<dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version>3.4.9</version> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </exclusion> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </exclusion> </exclusions> </dependency>
阅读全文
0 0
- SLF4J: Class path contains multiple SLF4J bindings
- SLF4J: Class path contains multiple SLF4J bindings
- SLF4J: Class path contains multiple SLF4J bindings.
- SLF4J: Class path contains multiple SLF4J bindings.
- SLF4J: Class path contains multiple SLF4J bindings.
- SLF4J: Class path contains multiple SLF4J bindings.
- SLF4J: Class path contains multiple SLF4J bindings.
- SLF4J: Class path contains multiple SLF4J bindings.
- SLF4J: Class path contains multiple SLF4J bindings.
- SLF4J: Class path contains multiple SLF4J bindings.
- SLF4J: Class path contains multiple SLF4J bindings.
- SLF4J: Class path contains multiple SLF4J bindings
- SLF4J: Class path contains multiple SLF4J bindings
- Class path contains multiple SLF4J bindings
- Tensorflow- Class path contains multiple SLF4J bindings
- SLF4J: Class path contains multiple SLF4J bindings 错误
- Hbase SLF4J: Class path contains multiple SLF4J bindings 错误
- SLF4J: Class path contains multiple SLF4J bindings 错误
- Java并发学习(十五)-并发工具Semaphore
- IntelliJ IDEA2017.3 激活
- leetcode 695. Max Area of Island——第一次成功的dfs
- 题目来源UVA
- android知识点链接(二)大多是网页的内容
- SLF4J: Class path contains multiple SLF4J bindings
- [jzoj]3479. 【NOIP2013模拟联考9】工作安排(work)
- 【Scikit-Learn 中文文档】数据集加载工具
- 设计模式-面向对象设计核心
- POJ-3669
- ssm开发使用redis作为缓存,使用步骤
- 1.2指令集体系结构分类
- Java中关于volatile关键字的一些总结
- 减少Android Studio应用项目体积的办法