SpringSecurity
SpringSecurity
@来杯咖啡
物极必反,否极泰来,法天象地,以定位也.
展开
-
SpringSecurity-授权示例
***/@Bean// authorities:使用"ROLE_"前缀,GrantedAuthority现在就表示一个角色// roles:不需要添加"ROLE_"前缀@Bean。原创 2024-06-27 23:09:21 · 338 阅读 · 0 评论 -
SpringSecurity-重写默认配置
【代码】SpringSecurity-重写默认配置。原创 2024-06-22 23:30:36 · 412 阅读 · 0 评论 -
SpringSecurity-入门代码
403:认证成功,但是授权时发现无权限,服务器响应403;401:不携带密码,认证失败,服务器响应401给客户端;1、不携带密码访问“/hello”接口。1、不携带密码访问“/hello”接口。2、携带密码访问“/hello”接口。2、携带密码访问“/hello”接口。原创 2024-06-18 09:44:45 · 436 阅读 · 0 评论