Spring Security: how to exclude certain resources?

前端 未结 6 919
执笔经年
执笔经年 2020-11-30 02:37

I have the following definition...

    

        
6条回答
  •  Happy的楠姐
    2020-11-30 03:12

    
        
        
        
    
    

    access="IS_AUTHENTICATED_ANONYMOUSLY" Is the solution. I found it on the following link http://syntx.io/adding-http-basic-auth-to-restful-services-in-java-and-spring/

    Intercepts are evaluated top down. If you write this /** before /getIntelFeed/** then all service would go through /** and security would be applied on all services. In such case /getIntelFeed/** would be ineffective.

提交回复
热议问题