转载自:https://blog.csdn.net/q3229270/article/details/77986687 

-----------------------------

错误提示如下:The method getLogger(String) in the type Logger is not applicable for the arguments (Class<TestMyBatis>)

等我知道这个报错的原因时,觉得自己粗心。

因为import错了包

我导入的:import java.util.logging.Logger;

应该导入:import org.apache.log4j.Logger;

[Debug] . [Log4j] log4j中Logger.getLogger()加载一个类提示错误


如上图,记下来以后别再犯这类的错误。


相关文章:

  • 2022-12-23
  • 2022-02-08
  • 2022-01-08
  • 2021-09-11
  • 2021-10-01
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
猜你喜欢
  • 2021-04-25
  • 2021-05-23
  • 2021-07-06
  • 2021-06-22
  • 2022-12-23
  • 2021-12-30
相关资源
相似解决方案