NoSuchMethodError with SLF4J API

前端 未结 8 1997
醉梦人生
醉梦人生 2021-01-03 19:19

When Use with slf4j,

String test = blahblahblah;
logger.info(\"{}\",test);

Trace as below

java.lang.NoSuchMethodError: org.         


        
8条回答
  •  执念已碎
    2021-01-03 20:21

    Looks like you have a version mis-match between the various SLF4J API and integration libraries. SLF4J is extremely twitchy when it comes to version compatibility (e.g. 1.6.x is not backwards compatible with 1.5.x).

    Make sure the various JAR versions match, and make sure there are no duplicate JARs on the classpath.

提交回复
热议问题