How do I use custom roles/authorities in Spring Security?

前端 未结 5 1138
遥遥无期
遥遥无期 2020-12-02 08:37

While migrating a legacy application to spring security I got the following exception:

org.springframework.beans.factory.BeanCreationException: Error creatin         


        
5条回答
  •  佛祖请我去吃肉
    2020-12-02 09:35

    Using Spring Security 3.2, this worked for me.

    Change Role Prefix:

    
        
    
    
       
    
    
        
            
                
                
            
        
    
    

    Depending on where you want to apply the Role Prefix it can be applied at the Security schema level or bean level.

    
    

    Apply Role Prefix at Service Level:

    
        
            
        
    
    

提交回复
热议问题