diff --git a/jeecg-module-system/jeecg-system-start/pom.xml b/jeecg-module-system/jeecg-system-start/pom.xml index b590de8..ef6e8ed 100644 --- a/jeecg-module-system/jeecg-system-start/pom.xml +++ b/jeecg-module-system/jeecg-system-start/pom.xml @@ -48,6 +48,12 @@ org.flywaydb flyway-core + + + + com.github.ulisesbocchio + jasypt-spring-boot-starter + diff --git a/jeecg-module-system/jeecg-system-start/src/main/resources/application.yml b/jeecg-module-system/jeecg-system-start/src/main/resources/application.yml index ba9863a..245dc8a 100644 --- a/jeecg-module-system/jeecg-system-start/src/main/resources/application.yml +++ b/jeecg-module-system/jeecg-system-start/src/main/resources/application.yml @@ -3,4 +3,14 @@ spring: name: jeecg-system profiles: active: '@profile.name@' - include: flow \ No newline at end of file + include: flow + +# ============================================ +# 敏感配置加密(jasypt) +# 口令 JASYPT_ENCRYPTOR_PASSWORD 走环境变量/JVM参数注入,严禁写死明文 +# ============================================ +jasypt: + encryptor: + password: ${JASYPT_ENCRYPTOR_PASSWORD:} + algorithm: PBEWITHHMACSHA512ANDAES_256 + iv-generator-classname: org.jasypt.iv.RandomIvGenerator \ No newline at end of file diff --git a/pom.xml b/pom.xml index 27311de..ce0e4d7 100644 --- a/pom.xml +++ b/pom.xml @@ -102,6 +102,9 @@ 6.8.0 + + 3.0.5 + 7.4.0 1.11.3 @@ -527,6 +530,12 @@ flyway-core 7.15.0 + + + com.github.ulisesbocchio + jasypt-spring-boot-starter + ${jasypt.version} +