Web services SpringWeb的Log4j问题

Web services SpringWeb的Log4j问题,web-services,spring,spring-mvc,log4j,Web Services,Spring,Spring Mvc,Log4j,在我的项目中部署Spring RESTful webservice时,我收到以下警告: log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.

在我的项目中部署Spring RESTful webservice时,我收到以下警告:

log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Log4j在我的项目中配置正确,但我不知道为什么我可以通过设置Log4j来解决问题。rootLogger=warn,stdout

您的Log4j配置文件是什么样子的?我可以通过设置Log4j.rootLogger=warn,stdout来解决问题。