You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
barney
8dfd76084d
|
2 years ago | |
---|---|---|
.idea | 2 years ago | |
sso-cart | 2 years ago | |
sso-login | 2 years ago | |
sso-main | 2 years ago | |
sso-vip | 2 years ago | |
README.md | 2 years ago | |
pom.xml | 2 years ago |
README.md
基于SpringBoot+Thymeleaf+maven实现基于Cookie的单点登录
使用依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
四个模块
sso-main
: 首页sso-login
: 登录sso-cart
: 购物车sso-vip
:vip
系统
接口
接口类型 | 接口地址 |
---|---|
首页 | http://www.codeshop.com:8082/view/index |
登录 | http://login.codeshop.com:8081/view/login |
登出 | http://login.codeshop.com:8081/view/logout |
购物车 | http://cart.codeshop.com:8080/view/index |
vip 系统 |
http://vip.codeshop.com:8083/view/index |
单点登录
三个服务: 首页、购物车、vip
系统,有一个成功登录,则所有服务均成功登录,一个退出登录,所有的服务均需重新登录