添加属性加密样例
This commit is contained in:
@@ -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,16 +8,17 @@ spring:
|
||||
profiles:
|
||||
active:
|
||||
# Boot
|
||||
- boot-jasypt
|
||||
- boot-base
|
||||
- boot-db
|
||||
# - boot-druid
|
||||
# - boot-druid
|
||||
- boot-hikari
|
||||
- boot-elasticsearch
|
||||
- boot-knife4j
|
||||
- boot-log
|
||||
- boot-mybatis-plus
|
||||
- boot-rabbitmq
|
||||
# - boot-kafka
|
||||
# - boot-kafka
|
||||
- boot-redis
|
||||
- boot-xxl-job
|
||||
- boot-storage
|
||||
|
||||
Reference in New Issue
Block a user