web.xml权限配置

论坛 期权论坛 脚本     
匿名技术用户   2020-12-23 13:12   32   0
<security-constraint>
        <web-resource-collection>
            <web-resource-name>myAuth</web-resource-name>
            <url-pattern>/druid/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>manager-gui</role-name>
        </auth-constraint>
    </security-constraint>

    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>druid</realm-name>
    </login-config>


auth-method 有:BASIC,FORM

如果是BASIC则默认的,FORM的还需配置login.jsp与error.jsp

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP