WebSecurityConfigurerAdapter已弃用
时间: 2023-10-12 12:05:21 浏览: 75
springboot:springboot学习百里香WebSecurityConfigurerAdapter
是的,WebSecurityConfigurerAdapter在Spring Security 5.7.0-M2中已被弃用。相反,Spring Security鼓励用户转向基于组件的安全配置。您可以使用WebSecurityCustomizer接口来自定义WebSecurity。以下是一个示例配置,使用WebSecurityCustomizer忽略匹配/ignore1或/ignore2的请求:<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [WebSecurityConfigurerAdapter已弃用](https://blog.csdn.net/lazy_LYF/article/details/127284459)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文