更新页面Jsp中的XML文件

时间:2013-05-18 15:51:59

标签: xml spring security

我使用spring security,我在我的数据库中有很多角色,例如ROLE_ADMIN和ROLE_USER,因此在我的名为“spring-security.xml”的xml文件中,我为每个角色可以看到它定义:

<http auto-config="true">
        <intercept-url pattern="/" access="ROLE_ADMIN,ROLE_USER" />
        <intercept-url pattern="/index*" access="ROLE_ADMIN,ROLE_USER" />
        <intercept-url pattern="/les_statistiques*" access="ROLE_ADMIN,ROLE_USER"/>
        <intercept-url pattern="/mise_a_jour*" access="ROLE_ADMIN,ROLE_USER" />
        <intercept-url pattern="/recherche*" access="ROLE_ADMIN,ROLE_USER" />
        <form-login login-page="/login" authentication-failure-url="/failLogin" />
        <logout logout-success-url="/logoff" />
        <access-denied-handler error-page="/403"/>
    </http>   

我想要的是拥有一个页面jsp,管理员可以在其中更改参数访问的值。我该怎么做?我该怎么用?

0 个答案:

没有答案