ITeye博客

web.xml basic验证

chenhongbinjs · 2014-06-12 16:48 · 其他 · Web前端 · Markdown

<login-config>
        <auth-method>BASIC</auth-method>
    </login-config>
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>auth</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>flowRole</role-name>
        </auth-constraint>
     </security-constraint>
     <security-role>
       <role-name>flowRole</role-name>
     </security-role>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。