tomcat启动项目:类路径找不到og4j.properties文件--错误提示"java.lang.IllegalArgumentException"

错误提示:java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter: class path resource [log4j.properties] cannot be resolved to URL because it does not exist

解决办法:项目右键------properties----java bulid path ----source---add folder--选择log4j.properties所在文件夹。

原文地址:https://www.cnblogs.com/yby120/p/9166612.html