feature(all): 服务增加配置文件信息加密

This commit is contained in:
2023-07-04 14:16:03 +08:00
parent 1ce0b74e2d
commit 740a9aea45
17 changed files with 166 additions and 42 deletions

View File

@@ -1,5 +1,6 @@
package com.lanyuanxiaoyao.service.info;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
@@ -25,6 +26,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
exclude = {GsonAutoConfiguration.class}
)
@EnableConfigurationProperties
@EnableEncryptableProperties
@EnableRetry
@EnableScheduling
public class InfoQueryApplication {

View File

@@ -4,9 +4,9 @@ spring:
profiles:
include: random-port,common,eureka,metrics
datasource:
url: jdbc:mysql://132.121.204.217:17906/iap-datahub?useSSL=false
username: odcp
password: wFg_fR492#&
url: ENC(tDeB9gYs1IHN90VV+KhNQAVEKSqeInEmFhgma7A0g6surB5pOyJC3lJx0QrvQo4zYz0WOhSgqjglHDSX7nh7k9ak3OQMgLYkHQGVawAZfcsGT/1m0csyjQzCxTCOZr5r)
username: ENC(29BKiU1cMKlA61gszFeYfWvoDVtLCCQAtfraxMq+f6Gm2LFu+67lkkBhoWgWIJga)
password: ENC(t+7GZM/tfqYeTlOugjcO6lUsHlacoVaomxLOeDpb6LhVB5+wbZHkKkW1xke8jNhQ)
driver-class-name: com.mysql.jdbc.Driver
druid:
initial-size: 5