log4j:WARN No appenders could be found for logger (bs.com.web.UnicomSyncServlet).

log4j:WARN Please initialize the log4j system properly.


从日志的上来看 真是log4j的bug  在web.xml  中加上以下配置

 <context-param>
    <param-name>log4jConfigLocation</param-name>
    <param-value>classpath:config/log4j.xml</param-value>
  </context-param>
  <listener>
    <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  </listener>


本文转载:CSDN博客