在使用angularjs进行路由的web应用程序中集成spring安全性

在使用angularjs进行路由的web应用程序中集成spring安全性,angularjs,spring-security,Angularjs,Spring Security,我的Web应用程序使用角度路由。我在spring安全集成中面临的问题是,一旦安全XML文件启动,它就不会阻止指定的拦截url。请给出一个解决方案 spring安全xml: <http auto-config="true"> <intercept-url pattern="/admin**" access="ROLE_USER" /> <form-login login-page="/rest/testing/login"

我的Web应用程序使用角度路由。我在spring安全集成中面临的问题是,一旦安全XML文件启动,它就不会阻止指定的拦截url。请给出一个解决方案

spring安全xml:

    <http auto-config="true">
    <intercept-url pattern="/admin**" access="ROLE_USER" /> 

    <form-login 
        login-page="/rest/testing/login" 
        authentication-failure-url="/rest/testing/login?error" 
        username-parameter="username"
        password-parameter="password" />
    <logout logout-success-url="/rest/testing/login"  />
    <!-- enable csrf protection -->
    <csrf/>
</http>

<authentication-manager>
    <authentication-provider>
        <user-service>
            <user name="admin" password="admin" authorities="ROLE_USER" />
        </user-service>
    </authentication-provider>
</authentication-manager>

在上面的js文件中,“/admin”url模式未被spring security xml拦截

您找到解决方案了吗?找到解决方案了吗?
  XmlView.config(function($routeProvider)
   {$routeProvider

    // route for the home page
    .when('/', {
        templateUrl : 'transform.jsp',
        controller : 'ViewController'
    })

    // route for the search page
    .when('/search', {
        templateUrl : 'search.jsp',
        controller : 'SearchController'
    })

    // route for the about page
    .when('/admin', {
        templateUrl : 'audits.jsp',
        controller : 'AuditController'
    })

    .when('/login', {
        templateUrl : 'login.jsp',

    })