添加属性加密样例
This commit is contained in:
@@ -55,7 +55,14 @@
|
|||||||
<groupId>org.xujun</groupId>
|
<groupId>org.xujun</groupId>
|
||||||
<artifactId>xtools-boot-storage-s3</artifactId>
|
<artifactId>xtools-boot-storage-s3</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- xtools-boot-jasypt -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.xujun</groupId>
|
||||||
|
<artifactId>xtools-boot-jasypt</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<!-- jasypt -->
|
||||||
<!-- 可选模块 end -->
|
<!-- 可选模块 end -->
|
||||||
|
|
||||||
</dependencies>
|
</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,16 +8,17 @@ spring:
|
|||||||
profiles:
|
profiles:
|
||||||
active:
|
active:
|
||||||
# Boot
|
# Boot
|
||||||
|
- boot-jasypt
|
||||||
- boot-base
|
- boot-base
|
||||||
- boot-db
|
- boot-db
|
||||||
# - boot-druid
|
# - boot-druid
|
||||||
- boot-hikari
|
- boot-hikari
|
||||||
- boot-elasticsearch
|
- boot-elasticsearch
|
||||||
- boot-knife4j
|
- boot-knife4j
|
||||||
- boot-log
|
- boot-log
|
||||||
- boot-mybatis-plus
|
- boot-mybatis-plus
|
||||||
- boot-rabbitmq
|
- boot-rabbitmq
|
||||||
# - boot-kafka
|
# - boot-kafka
|
||||||
- boot-redis
|
- boot-redis
|
||||||
- boot-xxl-job
|
- boot-xxl-job
|
||||||
- boot-storage
|
- boot-storage
|
||||||
|
|||||||
Reference in New Issue
Block a user