添加属性加密样例

This commit is contained in:
2026-08-05 15:13:35 +08:00
parent c17913cc20
commit 1cd8c81f28
3 changed files with 25 additions and 2 deletions
+7
View File
@@ -55,7 +55,14 @@
<groupId>org.xujun</groupId>
<artifactId>xtools-boot-storage-s3</artifactId>
</dependency>
<!-- xtools-boot-jasypt -->
<dependency>
<groupId>org.xujun</groupId>
<artifactId>xtools-boot-jasypt</artifactId>
</dependency>
<!-- jasypt -->
<!-- 可选模块 end -->
</dependencies>
<!-- 构建 -->
@@ -0,0 +1,15 @@
# jasypt
jasypt:
encryptor:
# 密码
password: xtools
# 算法
algorithm: PBEWithMD5AndDES
# iv
iv-generator-classname: org.jasypt.iv.NoIvGenerator
# 属性
property:
# 前缀
prefix: "ENC("
# 后缀
suffix: ")"
@@ -8,6 +8,7 @@ spring:
profiles:
active:
# Boot
- boot-jasypt
- boot-base
- boot-db
# - boot-druid