springboot 中 springsecurity 返回 403 Forbiddend的可能解决方法
微信小程序调用后端 返回了 {“timestamp”:”2020-12-27T13:01:02.329+0800″,”status”:403,”error”:”Forbidden”,”message”:”Forbidden”,”path”:”/kmhaf/wx/user/wxcc8**24732dd7a1/postAuth”}
经过检查是因为securityConfig中对不应该放行的路径进行了放行 .antMatchers(“/wx/user/*/aaa”).anonymous() ,把这一行删除就可以了
springboot 中 springsecurity 返回 403 Forbiddend的可能解决方法
原文地址:https://www.cnblogs.com/aojh/p/14197024.html

![springboot 中 springsecurity 返回 403 Forbiddend的可能解决方法
[编程语言教程]](https://www.zixueka.com/wp-content/uploads/2024/01/1706709462-278b94e2d7b1c54.jpg)
