ssm整合shiro时web。xml中配置filter,tomcat报错

2021-03-28 10:25

阅读:457

标签:inf   ring   http   default   ons   tomcat   artifact   val   man   

技术图片

 

 当我们使用ssm框架整合进行项目开发,使用Shiro作为安全验证管理,在web.xml中配置Shiro过滤器后 启动Tomcat会报错: Error during artifact deployment. See server log for details.

"shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
        "securityManager" ref="securityManager"/>
        "loginUrl" value="login.html"/>
        "unauthorizedUrl" value="403.html"/>
        "filterChainDefinitions">
            
                /login.jsp = anon
                /* = authc
            

注意这个地方是DefaultWebSecurityManager,很容易写成DefaultSecurityManager,所以在启动时tomcat会报错,还有就是

技术图片

 

ssm整合shiro时web。xml中配置filter,tomcat报错

标签:inf   ring   http   default   ons   tomcat   artifact   val   man   

原文地址:https://www.cnblogs.com/bozhengheng/p/12623313.html


评论


亲,登录后才可以留言!