如何在url-pattern中使用#排除web.xml中的URL

时间:2016-12-05 19:25:08

标签: web.xml

<!-- Security constraint to require the users to login using Google authentication -->
<security-constraint>
    <web-resource-collection>
        <web-resource-name>Protected</web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
        <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

公开链接

我想用#in括起来排除这个网址,但它不起作用。第一个过滤器总是被执行。怎么做?

<!-- Security constraint for public link -->
<security-constraint>
    <web-resource-collection>
        <web-resource-name>Public</web-resource-name>
        <url-pattern>/#/optout/</url-pattern>
    </web-resource-collection>
</security-constraint>

0 个答案:

没有答案