增加Jasypt加密库,方便对配置文件中存储的敏感信息进行加密

This commit is contained in:
mmnn 2022-05-11 09:59:47 +08:00
parent e4267c5c56
commit 255127d3a7
3 changed files with 20 additions and 0 deletions

View File

@ -43,6 +43,8 @@
<jaxb.version>3.0.1</jaxb.version>
<!-- 统一 guava 版本 解决隐式漏洞问题 -->
<guava.version>30.0-jre</guava.version>
<!-- 配置项加密 -->
<jasypt.version>3.0.4</jasypt.version>
<!-- OSS 配置 -->
<aws-java-sdk-s3.version>1.12.215</aws-java-sdk-s3.version>
@ -279,6 +281,13 @@
<version>${guava.version}</version>
</dependency>
<!-- 配置项加密 -->
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>${jasypt.version}</version>
</dependency>
<!-- 定时任务 -->
<dependency>
<groupId>com.ruoyi</groupId>

View File

@ -45,6 +45,12 @@
<artifactId>mssql-jdbc</artifactId>
</dependency>
<!-- 配置项加密 -->
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
</dependency>
<!-- 核心模块-->
<dependency>
<groupId>com.ruoyi</groupId>

View File

@ -282,3 +282,8 @@ management:
endpoint:
logfile:
external-file: ./logs/sys-console.log
# 配置项加密 可参考文档 https://www.helloworld.net/p/0742294590
jasypt:
encryptor:
password: RuoYi-Vue-Plus