当前位置:网站首页>日志jar包冲突,及其解决方法
日志jar包冲突,及其解决方法
2022-07-31 05:17:00 【数据之神护体!】
我的spring项目运行时,会报以下错误。虽然不影响项目运行,但是看着扎心!
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Administrator/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/Administrator/.m2/repository/org/slf4j/slf4j-log4j12/1.7.30/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
报错大概意思是说,包含两个不同的日志jar包路径分别是:
C:/Users/Administrator/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class
C:/Users/Administrator/.m2/repository/org/slf4j/slf4j-log4j12/1.7.30/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class
我们只需要到本地mavenjar包库删掉其中一个即可(需要关掉idea,才可以删除)
重启idea,运行。不再报错!

边栏推荐
猜你喜欢

MySQL master-slave switching steps

Fluorescein-PEG-DSPE 磷脂-聚乙二醇-荧光素荧光磷脂PEG衍生物

wangeditor富文本编辑器上传图片以及跨域问题解决

DSPE-PEG-Azide DSPE-PED-N3 磷脂-聚乙二醇-叠氮脂质PFG

Pytorch常用函数

CLS-PEG-FITC Fluorescein-PEG-CLS 胆固醇-聚乙二醇-荧光素简介

2022 SQL big factory high-frequency practical interview questions (detailed analysis)

VS2017连接MYSQL

Why does read in bash need to cooperate with while to read the contents of /dev/stdin

Sourcery插件(自动提升代码质量)
随机推荐
微信小程序源码获取与反编译方式
DC-CDN学习笔记
Pure shell implementation of text replacement
超参数优化-摘抄
softmax函数详解
网页截图与反向代理
Cholesterol-PEG-Thiol CLS-PEG-SH 胆固醇-聚乙二醇-巯基
Talking about the understanding of CAP in distributed mode
2021年软件测试面试题大全
用pytorch里的children方法自定义网络
CAS:474922-22-0 Maleimide-PEG-DSPE 磷脂-聚乙二醇-马来酰亚胺简述
Podspec automatic upgrade script
Global scope and function scope in js
A simple bash to powershell case
Cholesterol-PEG-Amine CLS-PEG-NH2 Cholesterol-Polyethylene Glycol-Amino Research Use
Cholesterol-PEG-Amine CLS-PEG-NH2 胆固醇-聚乙二醇-氨基科研用
我的训练函数模板(动态修改学习率、参数初始化、优化器选择)
The browser looks for events bound or listened to by js
VS2017连接MYSQL
ROS之service编程的学习和理解