log4j: WARN No appenders could be found for logger solution

The project will be placed under the log4j.properties configuration file src / resources directory, the console prints the following, indicating log4j configuration file did not take effect

log4j:WARN No appenders could be found for logger (org.apache.ibatis.logging.LogFactory).

log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Solutions directly to the log4j.properties configuration file in the src directory on it

Guess you like

Origin www.cnblogs.com/west-iversion/p/12142889.html