From 70036e012cbfaf93095197d33e8e78ee812df5d4 Mon Sep 17 00:00:00 2001 From: weiweiw <14335254+weiweiw22@user.noreply.gitee.com> Date: Wed, 20 Nov 2024 17:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=A0=E5=AF=86=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=92=8C=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bonus-modules/bonus-file/pom.xml | 5 +++++ bonus-modules/bonus-file/src/main/resources/bootstrap.yml | 5 +++++ bonus-modules/bonus-gen/src/main/resources/bootstrap.yml | 7 ++++++- bonus-modules/bonus-job/pom.xml | 7 ++++++- .../src/main/java/com/bonus/job/task/SysTask.java | 2 +- bonus-modules/bonus-job/src/main/resources/bootstrap.yml | 5 +++++ 6 files changed, 28 insertions(+), 3 deletions(-) diff --git a/bonus-modules/bonus-file/pom.xml b/bonus-modules/bonus-file/pom.xml index c9b714f..7e3f1b3 100644 --- a/bonus-modules/bonus-file/pom.xml +++ b/bonus-modules/bonus-file/pom.xml @@ -113,6 +113,11 @@ 8.5.12 + + com.github.ulisesbocchio + jasypt-spring-boot-starter + ${jasypt-spring-boot-starter.version} + diff --git a/bonus-modules/bonus-file/src/main/resources/bootstrap.yml b/bonus-modules/bonus-file/src/main/resources/bootstrap.yml index 4749ebc..371813f 100644 --- a/bonus-modules/bonus-file/src/main/resources/bootstrap.yml +++ b/bonus-modules/bonus-file/src/main/resources/bootstrap.yml @@ -7,3 +7,8 @@ spring: profiles: # 环境配置 active: dev + +#加密组件 +jasypt: + encryptor: + password: Encrypt \ No newline at end of file diff --git a/bonus-modules/bonus-gen/src/main/resources/bootstrap.yml b/bonus-modules/bonus-gen/src/main/resources/bootstrap.yml index 0147ec0..d7da0c3 100644 --- a/bonus-modules/bonus-gen/src/main/resources/bootstrap.yml +++ b/bonus-modules/bonus-gen/src/main/resources/bootstrap.yml @@ -5,4 +5,9 @@ spring: name: bonus-gen profiles: # 环境配置 - active: dev \ No newline at end of file + active: dev + +#加密组件 +jasypt: + encryptor: + password: Encrypt diff --git a/bonus-modules/bonus-job/pom.xml b/bonus-modules/bonus-job/pom.xml index 980fa1e..14a45fd 100644 --- a/bonus-modules/bonus-job/pom.xml +++ b/bonus-modules/bonus-job/pom.xml @@ -77,7 +77,12 @@ com.bonus bonus-common-swagger - + + + com.github.ulisesbocchio + jasypt-spring-boot-starter + ${jasypt-spring-boot-starter.version} + diff --git a/bonus-modules/bonus-job/src/main/java/com/bonus/job/task/SysTask.java b/bonus-modules/bonus-job/src/main/java/com/bonus/job/task/SysTask.java index c011b64..998e262 100644 --- a/bonus-modules/bonus-job/src/main/java/com/bonus/job/task/SysTask.java +++ b/bonus-modules/bonus-job/src/main/java/com/bonus/job/task/SysTask.java @@ -22,7 +22,7 @@ public class SysTask { protected final Logger logger = LoggerFactory.getLogger(this.getClass()); /** - * 30天 + * 3个月 */ final static int LAST_LOGIN_TIME_INTERVAL = 90*24*60; @Resource diff --git a/bonus-modules/bonus-job/src/main/resources/bootstrap.yml b/bonus-modules/bonus-job/src/main/resources/bootstrap.yml index c105290..5c661c7 100644 --- a/bonus-modules/bonus-job/src/main/resources/bootstrap.yml +++ b/bonus-modules/bonus-job/src/main/resources/bootstrap.yml @@ -6,3 +6,8 @@ spring: profiles: # 环境配置 active: dev + +#加密组件 +jasypt: + encryptor: + password: Encrypt \ No newline at end of file