报错Error configuring application listener of class org.springframework.web.context.ContextConfigLocation

错误内容是ClassNotFoundException: org.springframework.web.context.ContextConfigLocationdao导致一运行项目就是404

是因为配置在web.xml的listen时不对

应该是

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

我写的是

      ContextConfigLocation

<listener>
<listener-class>org.springframework.web.context.ContextConfigLocation</listener-class>
</listener>

posted @ 2019-03-04 00:10  慧妃不美  阅读(214)  评论(0编辑  收藏  举报