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