今天对接了移动短信 sdk,使用他们的 sdk 启动项目报错日志 SLF4J: Class path contains multiple SLF4J bindings.
报错信息
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/lf/work/company/code/dbs/src/main/resources/lib/masmgc.sdk.sms-0.0.1-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/lf/javaweb/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.11.2/log4j-slf4j-impl-2.11.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.util.ContextSelectorStaticBinder]
Exception in thread "main" java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.boot.SpringApplicationRunListener : org.springframework.boot.context.event.EventPublishingRunListener
pom 文件
com.yidong
yd-sms-sdk
0.0.1
system
${project.basedir}/src/main/resources/lib/masmgc.sdk.sms-0.0.1-SNAPSHOT.jar
org.slf4j
slf4j-log4j12
springboot 小项目日志使用的 log4j,引入的第三方 jar 无法排除,请教大佬们如何才能解决这个冲突。