README.md
<p align=“center”>
<img src=“https://img.shields.io/badge/Release-V2.8.0-green.svg” alt=“Downloads”>
<img src=“https://img.shields.io/badge/Release-V3.0.0-green.svg” alt=“Downloads”>
<img src=“https://img.shields.io/badge/JDK-1.8±green.svg” alt=“Build Status”>
<img src=“https://img.shields.io/badge/license-Apache 2-blue.svg” alt=“Build Status”>
<img src=“https://img.shields.io/badge/Spring Cloud-Hoxton.SR8-blue.svg” alt=“Coverage Status”>
<img src=“https://img.shields.io/badge/Spring Boot-2.2.11.RELEASE-blue.svg” alt=“Downloads”>
<img src=“https://img.shields.io/badge/Spring Cloud-2020-blue.svg” alt=“Coverage Status”>
<img src=“https://img.shields.io/badge/Spring Boot-2.4.1-blue.svg” alt=“Downloads”>
<a target="_blank" href=“https://bladex.vip”>
<img src=“https://img.shields.io/badge/Author-Small Chill-ff69b4.svg” alt=“Downloads”>
</a>
@@ -22,7 +22,7 @@
- 极简封装了多租户底层,用更少的代码换来拓展性更强的SaaS多租户系统。
- 借鉴OAuth2,实现了多终端认证系统,可控制子系统的token权限互相隔离。
- 借鉴Security,封装了Secure模块,采用JWT做Token认证,可拓展集成Redis等细颗粒度控制方案。
- 稳定生产了两年,经历了从Camden -> Hoxton的技术架构,也经历了从fat jar -> docker -> k8s + jenkins的部署架构
- 稳定生产了三年,经历了从 Camden -> Hoxton -> 2020 的技术架构,也经历了从fat jar -> docker -> k8s + jenkins的部署架构。
- 项目分包明确,规范微服务的开发模式,使包与包之间的分工清晰。
架构图
blade-auth/pom.xml
@@ -8,7 +8,7 @@
<parent>
<artifactId>SpringBlade</artifactId>
<groupId>org.springblade</groupId>
<version>2.8.0</version>
<version>3.0.0</version>
</parent>
<artifactId>blade-auth</artifactId>
@@ -65,11 +65,6 @@
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!–Zipkin–>
<!–<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>–>
</dependencies>
<build>
blade-auth/src/main/java/org/springblade/auth/AuthApplication.java
@@ -16,18 +16,16 @@
package org.springblade.auth;
import org.springblade.core.cloud.client.BladeCloudApplication;
import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
用户认证服务器
@author Chill
\*/
@SpringCloudApplication
@EnableFeignClients(AppConstant.BASE\_PACKAGES)
@BladeCloudApplication
public class AuthApplication {
public static void main(String\[\] args) {
blade-common/pom.xml
@@ -5,7 +5,7 @@
<parent>
<artifactId>SpringBlade</artifactId>
<groupId>org.springblade</groupId>
<version>2.8.0</version>
<version>3.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
blade-gateway/pom.xml
@@ -5,7 +5,7 @@
<parent>
<artifactId>SpringBlade</artifactId>
<groupId>org.springblade</groupId>
<version>2.8.0</version>
<version>3.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -58,13 +58,17 @@
</dependency>
<dependency>