oauth2
又逢乱世
这个作者很懒,什么都没留下…
展开
-
spring security用户不能重复登录 一个账号只在一个地方登录 踢下线
官网地址:Session Management :: Spring Security原创 2022-03-07 10:42:59 · 1448 阅读 · 0 评论 -
Spring Cloud Oauth2 搭建资源服务 简化版本不复杂
1,创建springboot项目2,在pom文件中加入关于oauth2的依赖<!-- oauth2 资源服务 --><dependency> <groupId>org.springframework.security.oauth</groupId> <artifactId>spring-security-oauth2</artifactId> <version>2.3.0.RELEASE&原创 2020-05-18 17:48:49 · 456 阅读 · 0 评论 -
Spring Cloud Oauth2 搭建授权认证中心 简化版本不复杂
1,创建一个springboot项目我的版本使用的是springboot2.2.1版本2,创建WebSecurityConfigurerAdapter的实现类WebSecurityConfig.javaimport org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.security原创 2020-05-18 15:56:16 · 2535 阅读 · 1 评论