log4j:WARN No appenders could be found for logger (org.springframework.beans.factory.xml.XmlBeanDefinitionReader).
Log4j:WARN Please initialize the og4j system properly.
这个警告是因为没有配置文件或者配置名有误,将配置文件名称改为(注意是否有空格):配置文件:log4j.properties
但改正后出现又出现一个警告
Log4j:ERROR Could not find value for key log4j.appender.stdout
log4j:ERROR Could not instantiate appender named "stdout".
这是因为我的配置文件加了stdout,但我没有stdout这个文件
log4j.rootLogger=WARN, stdout