配置应用程序监听器[org.springframework.web.context.ContextLoaderListener]错误
首先查看自己的配置文件(我maven项目)
web.xml(内容除了文件的配置位置外,是否有其他的不同)
springmvc org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:config/springmvc-config.xml springmvc *.action encoding org.springframework.web.filter.CharacterEncodingFilter encoding utf-8 encoding /* org.springframework.web.context.ContextLoaderListener contextConfigLocation classpath:config/application.xml
第二部看applicationContext配置文件
spring-mapper文件
spring-service文件
第三步(上面无误的话大概率是maven的问题)
(图片来源网络,侵删)
如果你这部分有路径的报错,直接将这个war删除,重新引入
之后就OK了。!!!(有别的问题私我,我一直在)
(图片来源网络,侵删)
(图片来源网络,侵删)
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。
还没有评论,来说两句吧...