解决ava.lang.NoSuchMethodError: org.slf4j.helpers.Util.safeGetSystemProperty(Ljava/lang/String;)Ljava/

Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.helpers.Util.safeGetSystemProperty(Ljava/lang/String;)Ljava/lang/String;
    at org.slf4j.impl.VersionUtil.getJavaMajorVersion(VersionUtil.java:11)
    at org.slf4j.impl.Log4jMDCAdapter.(Log4jMDCAdapter.java:37)
    at org.slf4j.impl.StaticMDCBinder.getMDCA(StaticMDCBinder.java:59)
    at org.slf4j.MDC.(MDC.java:90)
    at org.apache.activemq.broker.BrokerService.start(BrokerService.java:608)
    at org.apache.activemq.transport.mqtt.IDERunner.main(IDERunner.java:36)

当前pom配置

   
      org.slf4j
      slf4j-log4j12
      ${slf4j-version}
      test

   

slf4j-version 为1.7.25 将其改为1.7.5解决!

你可能感兴趣的:(解决ava.lang.NoSuchMethodError: org.slf4j.helpers.Util.safeGetSystemProperty(Ljava/lang/String;)Ljava/)