java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.atDebug()Lorg/apache/logging/log4j/LogBuilder;
时间: 2023-12-12 10:17:38 浏览: 182
This error occurs when the code is trying to call a method that does not exist in the version of the Log4j library being used. In this case, the method "atDebug()" is not found in the class "Logger".
To resolve this error, you need to make sure that the version of the Log4j library being used is compatible with the code. You can check the documentation of the library to see which methods are available in each version.
If you are using a build tool like Maven or Gradle, you can specify the version of the Log4j library in the configuration file. Make sure to use a version that includes the required method.
If you are not using a build tool, you can manually download and include the correct version of the Log4j library in your project.
阅读全文