我使用弹簧形式安全与“Bootstrap / Bootsfaces”。造型最初不起作用?我登录样式后工作

时间:2015-10-26 10:20:48

标签: jsf spring-security

一些我如何阻止资源(外部文件夹和Jars文件夹)?我不知道如何在XML中配置它。

Project Directory       

    <!-- Page level Spring Security : Intercept access to resources in /pages/secure/** -->
    <sec:intercept-url pattern="/pages/secure/**" access="hasRole('ROLE_MODERATOR')" />

    <!-- Page level Spring Security : Permit access to resources in /pages/unsecure/** -->
    <sec:intercept-url pattern="/pages/unsecure/**" access="permitAll"/>

    <!-- Page level Spring Security : Intercept access to resources in /** -->
    <sec:intercept-url pattern="/**" access="hasRole('ROLE_MODERATOR')"/>

    <!-- Page level Spring Security : Enable Primefaces -->
    <sec:intercept-url pattern="/javax.faces.resource/**" access="permitAll"/>

    <!-- Define login page for Spring Security -->
    <sec:form-login login-page="/pages/unsecure/login_bootstrap.xhtml"/>

    <!-- Define logout properties for Spring Security -->
    <sec:logout invalidate-session="true" delete-cookies="true" logout-success-url="/"></sec:logout>
</sec:http>

0 个答案:

没有答案