Java重定向和转发后Shiro报错

在使用了重定向和转发之后使用Shiro进行登录验证报错: org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton.  This is an invalid application configuration.

解决办法: 在web.xml中修改Shiro过滤器


 shiroSecurityFilter
org.springframework.web.filter.DelegatingFilterProxy

targetFilterLifecycle
true



shiroSecurityFilter
/*
FORWARD
REQUEST
ERROR

你可能感兴趣的:(JavaWeb)