From 8761da8a3b74a95f162358886ff36f47e1171a9a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A0=81=E5=8C=A0=E5=90=9B?=
Date: Sat, 18 Jun 2022 23:15:15 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=BB=20feat:=20v2.7.0.50?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 重要更新
- Spring Boot Admin 版本升级至 2.7.0
- 主要更新
- [新增] 新增读取全部角色和读取全部 Scope 接口,删除已有基于权限类别读取权限接口
- [新增] 自定义 Validation 注解 EnumeratedValue,支持对指定枚举的 name 或 ordinal 值进行校验,提升接口的健壮性。
- [新增] Spring Data JPA 分页查询数据排序支持。通过接口动态传递额外参数,实现分页数据的排序。
- [修正] 修复幂等和防刷拦截器读取配置不正确问题。优先读取注解配置参数,如注解为设置参数值,则默认使用统一配置参数。
- [优化] 优化 Security 工具类,使用 Spring Security 最新的获取 PasswordEncoder 工厂类重构密码创建方法和密码校验方法。
- [优化] 优化幂等和防刷注解和配置的默认参数值,设置更合理的参数,解决幂等和防刷过于敏感问题。
- 依赖更新
- docker-maven-plugin 版本升级至 0.40.1
- maven-embedder 版本升级至 3.8.6
- maven-compat 版本升级至 3.8.6
- redisson 版本升级至 3.17.4
- minio 版本升级至 8.4.2
- hutool 版本升级至 5.8.3
- weixin-java-sdk 版本升级至 4.3.5.B
- tencentcloud-sdk-java 版本升级至 3.1.530
- qiniu-java-sdk 版本升级至 7.11.0
---
README.md | 6 +++---
.../docker/docker-compose/linux/herodotus/.env | 2 +-
.../docker/docker-compose/windows/herodotus/.env | 2 +-
dependencies/pom.xml | 4 ++--
modules/eurynome-module-common/pom.xml | 4 ++--
modules/eurynome-module-security/pom.xml | 4 ++--
modules/eurynome-module-upms-logic/pom.xml | 4 ++--
modules/eurynome-module-upms-rest/pom.xml | 4 ++--
.../rest/controller/system/SysAuthorityController.java | 8 --------
.../upms/rest/controller/system/SysRoleController.java | 9 +++++++++
modules/pom.xml | 4 ++--
packages/authentication-spring-boot-starter/pom.xml | 4 ++--
packages/pom.xml | 4 ++--
packages/service-spring-boot-starter/pom.xml | 4 ++--
platform/eurynome-cloud-gateway/pom.xml | 4 ++--
platform/eurynome-cloud-monitor/pom.xml | 4 ++--
platform/eurynome-cloud-uaa/pom.xml | 4 ++--
platform/eurynome-cloud-upms/pom.xml | 4 ++--
platform/pom.xml | 2 +-
pom.xml | 4 ++--
services/eurynome-cloud-bpmn-ability/pom.xml | 4 ++--
services/eurynome-cloud-bpmn-logic/pom.xml | 4 ++--
services/pom.xml | 4 ++--
23 files changed, 49 insertions(+), 48 deletions(-)
diff --git a/README.md b/README.md
index 742d8f13a..75e1b578d 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@
-
+
@@ -41,7 +41,7 @@ Eurynome Cloud是一款企业级微服务架构和服务能力开发平台。基
## 重要说明
-Eurynome Cloud 自 v2.7.0.40 版本,开始全面使用 JDK 17。自该版本以后,系统代码将不再兼容 JDK 8,敬请悉知!
+Eurynome Cloud 自 v2.7.0.20 版本,开始全面使用 JDK 17。自该版本以后,系统代码将不再兼容 JDK 8,敬请悉知!
升级使用 JDK 17 的主要原因:
@@ -148,7 +148,7 @@ Eurynome Cloud 自 v2.7.0.40 版本,开始全面使用 JDK 17。自该版本
| Spring Cloud | 2021.0.3 |
| Spring Cloud Alibaba | 2021.0.1.0 |
| Spring Authorization Server | 0.3.0 |
-| Spring Boot Admin | 2.6.7 |
+| Spring Boot Admin | 2.7.0 |
| Nacos | 2.1.0 |
| Sentinel | 1.8.3 |
| Seata | 1.3.0 |
diff --git a/configurations/docker/docker-compose/linux/herodotus/.env b/configurations/docker/docker-compose/linux/herodotus/.env
index 39f8045fa..6c909ad63 100644
--- a/configurations/docker/docker-compose/linux/herodotus/.env
+++ b/configurations/docker/docker-compose/linux/herodotus/.env
@@ -1,4 +1,4 @@
-VERSION=2.7.0.40
+VERSION=2.7.0.50
GATEWAY_SERVICE_NAME=eurynome-cloud-gateway
GATEWAY_SERVICE_PORT=8847
UAA_SERVICE_NAME=eurynome-cloud-uaa
diff --git a/configurations/docker/docker-compose/windows/herodotus/.env b/configurations/docker/docker-compose/windows/herodotus/.env
index 39f8045fa..6c909ad63 100644
--- a/configurations/docker/docker-compose/windows/herodotus/.env
+++ b/configurations/docker/docker-compose/windows/herodotus/.env
@@ -1,4 +1,4 @@
-VERSION=2.7.0.40
+VERSION=2.7.0.50
GATEWAY_SERVICE_NAME=eurynome-cloud-gateway
GATEWAY_SERVICE_PORT=8847
UAA_SERVICE_NAME=eurynome-cloud-uaa
diff --git a/dependencies/pom.xml b/dependencies/pom.xml
index 0d27e248c..b85faf722 100644
--- a/dependencies/pom.xml
+++ b/dependencies/pom.xml
@@ -32,13 +32,13 @@
cn.herodotus.engine
dependencies
- 2.7.0.40
+ 2.7.0.50
cn.herodotus.eurynome
dependencies
- 2.7.0.40
+ 2.7.0.50
pom
eurynome-cloud-dependencies
diff --git a/modules/eurynome-module-common/pom.xml b/modules/eurynome-module-common/pom.xml
index 62906aa36..ddde83d74 100644
--- a/modules/eurynome-module-common/pom.xml
+++ b/modules/eurynome-module-common/pom.xml
@@ -32,11 +32,11 @@
modules
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
eurynome-module-common
- 2.7.0.40
+ 2.7.0.50
jar
diff --git a/modules/eurynome-module-security/pom.xml b/modules/eurynome-module-security/pom.xml
index 33abc9eb9..658df010c 100644
--- a/modules/eurynome-module-security/pom.xml
+++ b/modules/eurynome-module-security/pom.xml
@@ -32,11 +32,11 @@
modules
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
eurynome-module-security
- 2.7.0.40
+ 2.7.0.50
jar
diff --git a/modules/eurynome-module-upms-logic/pom.xml b/modules/eurynome-module-upms-logic/pom.xml
index 04331eab3..0975d40ca 100644
--- a/modules/eurynome-module-upms-logic/pom.xml
+++ b/modules/eurynome-module-upms-logic/pom.xml
@@ -32,11 +32,11 @@
modules
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
eurynome-module-upms-logic
- 2.7.0.40
+ 2.7.0.50
jar
diff --git a/modules/eurynome-module-upms-rest/pom.xml b/modules/eurynome-module-upms-rest/pom.xml
index 1b74c6aa0..957aa73ee 100644
--- a/modules/eurynome-module-upms-rest/pom.xml
+++ b/modules/eurynome-module-upms-rest/pom.xml
@@ -32,11 +32,11 @@
modules
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
eurynome-module-upms-rest
- 2.7.0.40
+ 2.7.0.50
jar
diff --git a/modules/eurynome-module-upms-rest/src/main/java/cn/herodotus/eurynome/module/upms/rest/controller/system/SysAuthorityController.java b/modules/eurynome-module-upms-rest/src/main/java/cn/herodotus/eurynome/module/upms/rest/controller/system/SysAuthorityController.java
index f8899e616..d3e011fa0 100644
--- a/modules/eurynome-module-upms-rest/src/main/java/cn/herodotus/eurynome/module/upms/rest/controller/system/SysAuthorityController.java
+++ b/modules/eurynome-module-upms-rest/src/main/java/cn/herodotus/eurynome/module/upms/rest/controller/system/SysAuthorityController.java
@@ -95,12 +95,4 @@ public Result> findAll() {
List sysAuthorities = sysAuthorityService.findAll();
return result(sysAuthorities);
}
-
- @Operation(summary = "获取全部API接口", description = "获取全部API接口")
- @GetMapping("/apis")
- @Deprecated
- public Result> findAllApis() {
- List sysAuthorities = sysAuthorityService.findAllByAuthorityType(AuthorityType.API);
- return result(sysAuthorities);
- }
}
diff --git a/modules/eurynome-module-upms-rest/src/main/java/cn/herodotus/eurynome/module/upms/rest/controller/system/SysRoleController.java b/modules/eurynome-module-upms-rest/src/main/java/cn/herodotus/eurynome/module/upms/rest/controller/system/SysRoleController.java
index 9f8eaa8c0..e01a0418c 100644
--- a/modules/eurynome-module-upms-rest/src/main/java/cn/herodotus/eurynome/module/upms/rest/controller/system/SysRoleController.java
+++ b/modules/eurynome-module-upms-rest/src/main/java/cn/herodotus/eurynome/module/upms/rest/controller/system/SysRoleController.java
@@ -41,6 +41,8 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
+import java.util.List;
+
@RestController
@RequestMapping("/role")
@Tag(name = "系统角色接口")
@@ -84,4 +86,11 @@ public Result findByRoleCode(@PathVariable("roleCode") String roleCode)
SysRole sysRole = sysRoleService.findByRoleCode(roleCode);
return result(sysRole);
}
+
+ @Operation(summary = "获取全部角色", description = "获取全部角色")
+ @GetMapping("/list")
+ public Result> findAll() {
+ List sysAuthorities = sysRoleService.findAll();
+ return result(sysAuthorities);
+ }
}
diff --git a/modules/pom.xml b/modules/pom.xml
index 0cd16e931..59cb6ee1a 100644
--- a/modules/pom.xml
+++ b/modules/pom.xml
@@ -32,11 +32,11 @@
eurynome-cloud
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
modules
- 2.7.0.40
+ 2.7.0.50
pom
eurynome-cloud-modules
diff --git a/packages/authentication-spring-boot-starter/pom.xml b/packages/authentication-spring-boot-starter/pom.xml
index 8cb7d8ead..225842576 100644
--- a/packages/authentication-spring-boot-starter/pom.xml
+++ b/packages/authentication-spring-boot-starter/pom.xml
@@ -32,11 +32,11 @@
packages
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
authentication-spring-boot-starter
- 2.7.0.40
+ 2.7.0.50
jar
diff --git a/packages/pom.xml b/packages/pom.xml
index 9d866b68d..703a3da2a 100644
--- a/packages/pom.xml
+++ b/packages/pom.xml
@@ -32,11 +32,11 @@
eurynome-cloud
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
packages
- 2.7.0.40
+ 2.7.0.50
pom
eurynome-cloud-packages
diff --git a/packages/service-spring-boot-starter/pom.xml b/packages/service-spring-boot-starter/pom.xml
index d60357836..e58bc3912 100644
--- a/packages/service-spring-boot-starter/pom.xml
+++ b/packages/service-spring-boot-starter/pom.xml
@@ -32,11 +32,11 @@
packages
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
service-spring-boot-starter
- 2.7.0.40
+ 2.7.0.50
jar
diff --git a/platform/eurynome-cloud-gateway/pom.xml b/platform/eurynome-cloud-gateway/pom.xml
index 249b76e6b..3dc4b4d56 100644
--- a/platform/eurynome-cloud-gateway/pom.xml
+++ b/platform/eurynome-cloud-gateway/pom.xml
@@ -32,11 +32,11 @@
platform
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
eurynome-cloud-gateway
- 2.7.0.40
+ 2.7.0.50
jar
diff --git a/platform/eurynome-cloud-monitor/pom.xml b/platform/eurynome-cloud-monitor/pom.xml
index edf8b82ca..b8c2b2814 100644
--- a/platform/eurynome-cloud-monitor/pom.xml
+++ b/platform/eurynome-cloud-monitor/pom.xml
@@ -30,11 +30,11 @@
platform
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
eurynome-cloud-monitor
- 2.7.0.40
+ 2.7.0.50
eurynome-cloud-monitor
eurynome-cloud-monitor
diff --git a/platform/eurynome-cloud-uaa/pom.xml b/platform/eurynome-cloud-uaa/pom.xml
index 118c8a84e..b5e21b032 100644
--- a/platform/eurynome-cloud-uaa/pom.xml
+++ b/platform/eurynome-cloud-uaa/pom.xml
@@ -32,11 +32,11 @@
platform
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
eurynome-cloud-uaa
- 2.7.0.40
+ 2.7.0.50
jar
diff --git a/platform/eurynome-cloud-upms/pom.xml b/platform/eurynome-cloud-upms/pom.xml
index 8d3fcd8e9..b01bdfbc1 100644
--- a/platform/eurynome-cloud-upms/pom.xml
+++ b/platform/eurynome-cloud-upms/pom.xml
@@ -30,12 +30,12 @@
platform
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
4.0.0
eurynome-cloud-upms
- 2.7.0.40
+ 2.7.0.50
diff --git a/platform/pom.xml b/platform/pom.xml
index fb3fd0d05..128703226 100644
--- a/platform/pom.xml
+++ b/platform/pom.xml
@@ -31,7 +31,7 @@
eurynome-cloud
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
platform
diff --git a/pom.xml b/pom.xml
index 4f4a98c54..5cdec64aa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,12 +7,12 @@
cn.herodotus.eurynome
dependencies
- 2.7.0.40
+ 2.7.0.50
dependencies/pom.xml
eurynome-cloud
- 2.7.0.40
+ 2.7.0.50
pom
eurynome-cloud
diff --git a/services/eurynome-cloud-bpmn-ability/pom.xml b/services/eurynome-cloud-bpmn-ability/pom.xml
index d1d26724d..508d2b96b 100644
--- a/services/eurynome-cloud-bpmn-ability/pom.xml
+++ b/services/eurynome-cloud-bpmn-ability/pom.xml
@@ -31,11 +31,11 @@
services
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
eurynome-cloud-bpmn-ability
- 2.7.0.40
+ 2.7.0.50
eurynome-cloud-bpmn-ability
基于Camunda工作流的服务
diff --git a/services/eurynome-cloud-bpmn-logic/pom.xml b/services/eurynome-cloud-bpmn-logic/pom.xml
index 8043e9853..d036536c7 100644
--- a/services/eurynome-cloud-bpmn-logic/pom.xml
+++ b/services/eurynome-cloud-bpmn-logic/pom.xml
@@ -32,11 +32,11 @@
services
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
eurynome-cloud-bpmn-logic
- 2.7.0.40
+ 2.7.0.50
jar
diff --git a/services/pom.xml b/services/pom.xml
index 804c2c54c..a5ccefd64 100644
--- a/services/pom.xml
+++ b/services/pom.xml
@@ -32,11 +32,11 @@
eurynome-cloud
cn.herodotus.eurynome
- 2.7.0.40
+ 2.7.0.50
services
- 2.7.0.40
+ 2.7.0.50
pom
eurynome-cloud-services