错误提示如下: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;

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


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


相关文章url:

http://www.cnblogs.com/jiaguozhilian/p/5819646.html

http://www.cnblogs.com/binbiubiu/p/5909035.html




相关文章:

  • 2022-12-23
  • 2022-01-25
  • 2021-07-30
  • 2022-12-23
  • 2021-08-05
  • 2021-09-24
  • 2022-03-03
  • 2021-04-28
猜你喜欢
  • 2021-05-17
  • 2021-11-26
  • 2021-08-15
  • 2022-12-23
  • 2021-10-01
  • 2021-04-01
相关资源
相似解决方案