这个security中的authorizeRequests()、requestMatchers该怎么理解呢

img


这个security中的authorizeRequests()、requestMatchers该怎么理解呢

其实说白了,就是配置一个个的校验。authorizeRequests意思就是开始配置请求校验,之后的各种matchers都是匹配作用,匹配之后,允许所有permitAll或者进行登录校验authenticated。
想要了解SpringSecurity可以看一下这个系列的文章:
https://blog.csdn.net/lookoutthe/category_11588763.html