web.xml发现在加载org.springframework.web.context.ContextLoader这个listener之后才加载org.springframework.web.util.Log4jConfigListener,把log4j的配置放到org.springframework.web.context.ContextLoader之前,就可以解决这个问题了。
log4jConfigLocation
/WEB-INF/log4j.properties
log4jRefreshInterval
60000
org.springframework.web.util.Log4jConfigListener
org.springframework.web.context.ContextLoaderListener
估计是这里大意com/lcc/ibatistest/Student.xml写错了,改成
com.lcc.ibatistest.Student.xml
报告这种异常的原因有很多7需要提供更多的信息