信息: No Spring WebApplicationInitializer types detected on classpath
九月 30, 2017 12:54:54 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
刚启动时打印的日志!在发送请求还是卡死,控制台没记录打印,之前是没有加载mapper.xml文件在pom文件配置了下,就这样,求解
提供以下解决方案:
1.第一步update一下maven,确保项目所有class文件都得到加载,然后部署启动
2.配置你的Logger日志:配置Log4j这里说的很详细,你可以借鉴
3.如果哥们自己还解决不了建议你贴出你的代码(spring配置和web.xml配置)
希望能够帮到你,望采纳,有问题可以回复我,我看到会回复你。国庆快乐。
No Spring WebApplicationInitializer types detected on classpath
这个错误 检查一下你的web.xml
参考下 http://bbs.csdn.net/topics/390889579
请贴出web.xml的代码,然后献出你的applicationContext.xml和xxx-servlet.xml文件的位置路径