springsecurity忽略权限控制
时间: 2023-08-11 18:07:25 浏览: 127
SpringSecurity权限管理
Spring Security提供了一种忽略权限控制的方式。你可以通过配置来实现。在Spring Security的配置类中,可以使用`http.authorizeRequests().antMatchers("/path").permitAll()`来指定某个路径不需要进行权限控制,即忽略权限控制。其中`/path`是你要忽略权限控制的路径。这样,当用户访问该路径时,不会进行权限验证。\[1\]
#### 引用[.reference_title]
- *1* *3* [三、SpringSecurity 动态权限访问控制](https://blog.csdn.net/pactoer/article/details/124968293)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Spring Security进行权限控制](https://blog.csdn.net/geejkse_seff/article/details/126114169)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文