在web.xml文件中配置了
org.springframework.web.context.ContextLoaderListener
之后,
启动项目时localhost日志一直报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListene的错误:在经过一番查询资料和尝试之后,发现大概以下几点可能会触发这种错误!
1.jar包依赖冲突,把重复的jar包删除
2.在web.xml加上
contextConfigLocation
classpath:applicationContext-*.xml
3.没有写war(注:这是我今天遇到的问题,因为是刚搭的框架,依赖是复制之前的,但这个忘记了)