log4j:WARN No appenders could be found for logger in web.xml

后端 未结 12 1905
温柔的废话
温柔的废话 2020-11-30 21:54

I already put the log4jConfigLocation in web.xml, but I still get the following warning:

log4j:WARN No appenders cou         


        
12条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-30 22:15

    You may get this error when your log4j.properties are not present in the classpath.

    This means you have to move the log4j.properties into the src folder and set the output to the bin folder so that at run time log4j.properties will read from the bin folder and your error will be resolved easily.

提交回复
热议问题