shiro学习(12)No WebApplicationContext found:
生活随笔
收集整理的這篇文章主要介紹了
shiro学习(12)No WebApplicationContext found:
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener or DispatcherServlet registered?org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:252)
解決
web.xml缺少了Spring監聽器:
<listener> ?
? <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> ?
</listener> ?
<context-param> ?
? <param-name>contextConfigLocation</param-name> ?
? <param-value>classpath:beans.xml</param-value> ?
</context-param>
?
總結
以上是生活随笔為你收集整理的shiro学习(12)No WebApplicationContext found:的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JDK自带的native2ascii工具
- 下一篇: 根据图片获得配色方案_配色系列(1)—从