Spring webSecurity.ignoring() doesn't ignore custom filter

前端 未结 6 1488
轻奢々
轻奢々 2020-12-06 05:39

I have a set a custom authentication filter in my Spring 4 MVC + Security + Boot project. The filter does it\'s job well and now I want to disable the security for some URI

6条回答
  •  时光说笑
    2020-12-06 06:33

    I always found the easiest way to do this is to put this configuration in your application.properties:

    security.ignored=/api/**
    

提交回复
热议问题