web.xml权限配置

时间:2014-05-09 01:44:27   收藏:0   阅读:343
<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

web.xml权限配置,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!