shiro SessionContext must be an HTTP compatible implementation.
2018-03-29 22:02
459 查看
shiro报错了,SessionContext must be an HTTP compatible implementation.后来看了下,原来是我web.xml里面忘记配置shirofilter了。<filter>
<filter-name>shiroFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
<init-param>
<param-name>targetFilterLifecycle</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>shiroFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>加上以后重启就没报错了
<filter-name>shiroFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
<init-param>
<param-name>targetFilterLifecycle</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>shiroFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>加上以后重启就没报错了
相关文章推荐
- S2SH整合Shiro之:SessionContext must be an HTTP compatible implementation
- S2SH整合Shiro之:SessionContext must be an HTTP compatible implementation
- java.lang.IllegalArgumentException: SessionContext must be an HTTP compatible implementation.:模块化本地测试shiro的一些总结
- 使用shiro的session后,HttpSession.getServletContext() 获取一直是null的解决方法
- apache-shiro杂记(三) 用了apache-shiro后,HttpSession.getServletContext() API无法正常工作了
- An error occurred while collecting items to be installed session context was
- unexpected token after objective c string 和@ end must be appear in an objective c context 错误
- tomcat 7 WARNING: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
- An error occurred while collecting items to be installed session context was:(profile=epp.package.je
- An error occurred while collecting items to be installed session context was:(profile=epp.package.je
- An error occurred while collecting items to be installed session context was:(profile=DefaultProfile... 解决方案
- An error occurred while collecting items to be installed session context was:(profile=epp.package.je
- A context path must either be an empty string or start with a '/' and do not end with a '/' 问题解决方法
- An error occurred while collecting items to be installed session context was:(profile=epp.package.je
- An error occurred while collecting items to be installed session context was
- HttpSession.setAttribute ServletContext.setAttribute是否线程安全
- Python异常:Django1.11--context must be a dict rather than RequestContext.
- Synthesized property 'xx' must either be named the same as a compatible ivar or must explicitly name
- 如何获取app access_token(针对这样的错误This method must be called with an app access_token.)
- No exception of type JmsException can be thrown; an exception type must be a subclass of Throwable