applicationContext-security.xml 也要修改


 xmlns:s="http://www.springframework.org/schema/security"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                        http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"
 default-lazy-init="true">

 SpringSecurity安全配置
 
 
   jsr250-annotations="enabled" pre-post-annotations="enabled"> 
 

 
 
 
 
 
  
  
  
     default-target-url="/swp/mainPage" always-use-default-target="true"
   authentication-failure-url="/manager/login.jsp?error=true" />
  
  
  
  
   
   

  
  
  
  
  
  
  
  

     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN','ROLE_USER')" />
     access="hasAnyRole('ROLE_ADMIN')" />

     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
  
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_管理员')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
     access="hasAnyRole('ROLE_ADMIN')" />
  
 

 
 
     user-service-ref="userDetailsService">
   
  
 

 
   class="com.snda.swp.account.service.UserDetailsServiceImpl" />

你可能感兴趣的:(access,session,encoding,web,class,user,springside)