一些我如何阻止资源(外部文件夹和Jars文件夹)?我不知道如何在XML中配置它。
<!-- 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>