From 3dc40d156c01097d6ef720a26fca4d5e7eeab6f3 Mon Sep 17 00:00:00 2001
From: 15856 <15856818120@163.com>
Date: Wed, 31 Jul 2024 13:53:33 +0800
Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=B4=A6=E5=8F=B7?=
=?UTF-8?q?=E5=AF=86=E7=A0=81=E5=8A=A0=E5=AF=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sgzb-auth/pom.xml | 7 ++++++-
.../main/java/com/bonus/sgzb/auth/SgzbAuthApplication.java | 4 ++--
sgzb-gateway/pom.xml | 7 ++++++-
.../com/bonus/sgzb/gateway/SgzbGatewayApplication.java | 2 ++
sgzb-modules/sgzb-base/pom.xml | 7 ++++++-
.../src/main/java/com/bonus/sgzb/SgzbBaseApplication.java | 3 ++-
sgzb-modules/sgzb-material/pom.xml | 6 ++++++
.../com/bonus/sgzb/material/SgzbMaterialApplication.java | 2 ++
sgzb-modules/sgzb-system/pom.xml | 6 ++++++
.../java/com/bonus/sgzb/system/SgzbSystemApplication.java | 2 ++
10 files changed, 40 insertions(+), 6 deletions(-)
diff --git a/sgzb-auth/pom.xml b/sgzb-auth/pom.xml
index a00e0fcb..939b0fdc 100644
--- a/sgzb-auth/pom.xml
+++ b/sgzb-auth/pom.xml
@@ -55,7 +55,12 @@
org.projectlombok
lombok
-
+
+
+ com.github.ulisesbocchio
+ jasypt-spring-boot
+ 3.0.2
+
diff --git a/sgzb-auth/src/main/java/com/bonus/sgzb/auth/SgzbAuthApplication.java b/sgzb-auth/src/main/java/com/bonus/sgzb/auth/SgzbAuthApplication.java
index 45b54793..6ba86b9f 100644
--- a/sgzb-auth/src/main/java/com/bonus/sgzb/auth/SgzbAuthApplication.java
+++ b/sgzb-auth/src/main/java/com/bonus/sgzb/auth/SgzbAuthApplication.java
@@ -1,11 +1,10 @@
package com.bonus.sgzb.auth;
-import org.mybatis.spring.annotation.MapperScan;
+import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import com.bonus.sgzb.common.security.annotation.EnableRyFeignClients;
-import org.springframework.context.annotation.ComponentScan;
/**
* 认证授权中心
@@ -14,6 +13,7 @@ import org.springframework.context.annotation.ComponentScan;
*/
@EnableRyFeignClients
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
+@EnableEncryptableProperties
public class SgzbAuthApplication {
public static void main(String[] args) {
SpringApplication.run(SgzbAuthApplication.class, args);
diff --git a/sgzb-gateway/pom.xml b/sgzb-gateway/pom.xml
index 2a9c1497..9144ab73 100644
--- a/sgzb-gateway/pom.xml
+++ b/sgzb-gateway/pom.xml
@@ -87,7 +87,12 @@
springfox-swagger2
${swagger.fox.version}
-
+
+
+ com.github.ulisesbocchio
+ jasypt-spring-boot
+ 3.0.2
+
diff --git a/sgzb-gateway/src/main/java/com/bonus/sgzb/gateway/SgzbGatewayApplication.java b/sgzb-gateway/src/main/java/com/bonus/sgzb/gateway/SgzbGatewayApplication.java
index de713c01..7f42241c 100644
--- a/sgzb-gateway/src/main/java/com/bonus/sgzb/gateway/SgzbGatewayApplication.java
+++ b/sgzb-gateway/src/main/java/com/bonus/sgzb/gateway/SgzbGatewayApplication.java
@@ -1,5 +1,6 @@
package com.bonus.sgzb.gateway;
+import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@@ -10,6 +11,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
* @author ruoyi
*/
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })
+@EnableEncryptableProperties
public class SgzbGatewayApplication
{
public static void main(String[] args)
diff --git a/sgzb-modules/sgzb-base/pom.xml b/sgzb-modules/sgzb-base/pom.xml
index 67ee6982..26175680 100644
--- a/sgzb-modules/sgzb-base/pom.xml
+++ b/sgzb-modules/sgzb-base/pom.xml
@@ -97,7 +97,12 @@
5.8.18
compile
-
+
+
+ com.github.ulisesbocchio
+ jasypt-spring-boot
+ 3.0.2
+
diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/SgzbBaseApplication.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/SgzbBaseApplication.java
index 7c2d9a70..a991d6b9 100644
--- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/SgzbBaseApplication.java
+++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/SgzbBaseApplication.java
@@ -4,10 +4,10 @@ package com.bonus.sgzb;
import com.bonus.sgzb.common.security.annotation.EnableCustomConfig;
import com.bonus.sgzb.common.security.annotation.EnableRyFeignClients;
import com.bonus.sgzb.common.swagger.annotation.EnableCustomSwagger2;
+import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
-
/**
* 文件服务
*
@@ -17,6 +17,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableCustomConfig
@EnableRyFeignClients
+@EnableEncryptableProperties
public class SgzbBaseApplication
{
public static void main(String[] args)
diff --git a/sgzb-modules/sgzb-material/pom.xml b/sgzb-modules/sgzb-material/pom.xml
index 601597f0..2b5d3bbe 100644
--- a/sgzb-modules/sgzb-material/pom.xml
+++ b/sgzb-modules/sgzb-material/pom.xml
@@ -107,6 +107,12 @@
5.8.16
compile
+
+
+ com.github.ulisesbocchio
+ jasypt-spring-boot
+ 3.0.2
+
diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/SgzbMaterialApplication.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/SgzbMaterialApplication.java
index f260cb28..64129d37 100644
--- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/SgzbMaterialApplication.java
+++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/SgzbMaterialApplication.java
@@ -4,6 +4,7 @@ package com.bonus.sgzb.material;
import com.bonus.sgzb.common.security.annotation.EnableCustomConfig;
import com.bonus.sgzb.common.security.annotation.EnableRyFeignClients;
import com.bonus.sgzb.common.swagger.annotation.EnableCustomSwagger2;
+import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@@ -17,6 +18,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableCustomConfig
@EnableRyFeignClients
+@EnableEncryptableProperties
public class SgzbMaterialApplication
{
public static void main(String[] args)
diff --git a/sgzb-modules/sgzb-system/pom.xml b/sgzb-modules/sgzb-system/pom.xml
index 2153e59e..57b6d66e 100644
--- a/sgzb-modules/sgzb-system/pom.xml
+++ b/sgzb-modules/sgzb-system/pom.xml
@@ -116,6 +116,12 @@
cos_api
5.6.54
+
+
+ com.github.ulisesbocchio
+ jasypt-spring-boot
+ 3.0.2
+
diff --git a/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/SgzbSystemApplication.java b/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/SgzbSystemApplication.java
index f5bc6f32..b9b625a2 100644
--- a/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/SgzbSystemApplication.java
+++ b/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/SgzbSystemApplication.java
@@ -1,5 +1,6 @@
package com.bonus.sgzb.system;
+import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.bonus.sgzb.common.security.annotation.EnableCustomConfig;
@@ -15,6 +16,7 @@ import com.bonus.sgzb.common.swagger.annotation.EnableCustomSwagger2;
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
+@EnableEncryptableProperties
public class SgzbSystemApplication
{
public static void main(String[] args)