Commit 4a1950a4 by 陈浩建

配置文件敏感信息加密

parent 32458b2c
......@@ -130,6 +130,10 @@
</dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.winsun.gdtel.gztel</groupId>
<artifactId>common</artifactId>
<version>${service.version}</version>
......
......@@ -96,8 +96,8 @@ spring:
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -108,7 +108,7 @@ spring:
database: 0
host: localhost
port: 6379
password:
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -121,8 +121,8 @@ spring:
prohibition: 600
datasource:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
dynamic:
primary: master
p6spy: true
......
......@@ -97,7 +97,7 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: root
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root
redis:
clusterWhether: false
......@@ -108,7 +108,7 @@ spring:
database: 0
host: localhost
port: 6379
password: hniPdaqs4$8HH8m6KTP
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -129,8 +129,8 @@ spring:
datasource:
master:
url: jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: AMrGBg6ZSsRrDLs6
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: ENC(r4U47DSf9LNRyoH/G6GxfA2w1JTZOwr7MREDyGA0PWM=)
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
......@@ -185,3 +185,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -96,8 +96,8 @@ spring:
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -129,8 +129,8 @@ spring:
datasource:
master:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
......@@ -187,3 +187,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -98,8 +98,8 @@ spring:
rabbitmq:
host: 123.56.82.141
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -122,6 +122,9 @@ spring:
exprie: 600
prohibition: 600
datasource:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
dynamic:
primary: master
p6spy: true
......
......@@ -119,6 +119,9 @@
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.github.ulisesbocchio</groupId>-->
<!-- <artifactId>jasypt-spring-boot-starter</artifactId>-->
<!-- </dependency>-->
</dependencies>
</project>
......@@ -1006,12 +1006,12 @@ public class IntelligenceSendOrder {
saleId1 = itmeJson.getString("saleId");
}
} else if (itmeJson.getString("propertyName").indexOf("提速包") != -1) {
if (itmeJson.getString("name").equals(expenses)) {
if (expenses.equals(itmeJson.getString("name"))) {
// 获取对应产品ID
saleId2 = itmeJson.getString("saleId");
}
} else if (itmeJson.getString("propertyName").indexOf("增值业务") != -1) {
if (itmeJson.getString("name").equals(expenses)) {
if (expenses.equals(itmeJson.getString("name"))) {
// 获取对应产品ID
saleId2 = itmeJson.getString("saleId");
}
......
......@@ -49,24 +49,21 @@ public class PicturesUtil {
//blog.csdn.net/kookob/java/article/details/6885383
String filePath = null;
String[] multipartFiles = new String[]{file};
Map<String,Object> map = new HashMap<>();
for (int i = 0; i < multipartFiles.length; i++) {
if (!multipartFiles[i].isEmpty()) {
String base64Data = multipartFiles[i].split(",")[1];
String houzhui = multipartFiles[i].split(",")[0].split("/")[1].split(";")[0];
String filePath1 = UPLOAD_PRE + FilePath.PATH.getValue()+ pathType+ "/" + yymmdd + "/" + orderNum;
map.put("filePath1",filePath1);
File dir = new File(map.get("filePath1").toString());
File dir = new File(filePath1);
if (!dir.exists()) {
dir.mkdirs();
}//enclosure/images/idCard/temp/年/月/日/name.jpeg
filePath = UPLOAD_PRE + FilePath.PATH.getValue()+ pathType+ "/" + yymmdd + "/" + orderNum + "/" + (new Date()).getTime() + "." + PicturesUtil.checkSuffix(houzhui);
map.put("filePath",filePath);
byte[] bytes = Base64.getMimeDecoder().decode(base64Data.replace(" ","+"));
FileOutputStream fos = null;
try {
fos = new FileOutputStream(map.get("filePath").toString());
fos = new FileOutputStream(filePath);
if (fos != null) {
fos.write(bytes);
}
......
......@@ -69,12 +69,10 @@ spring:
# republish failures to the DLQ with diagnostic headers
republish-to-dlq: true
rabbitmq:
# host: locahost
host: 123.56.82.141
host: localhost
port: 5672
username: guest
password: guest
# password: dsJS8AaSSQ1
username: ENC(bejPzANsFWjq/OahirFIYg==)
password: ENC(bejPzANsFWjq/OahirFIYg==)
redis:
clusterWhether: false
cluster:
......@@ -84,8 +82,7 @@ spring:
database: 0
host: localhost
port: 6379
# password: aOSJD*D12S
password:
password: ENC(7pxTOj/J2GJBbNFhIRTz4Q8Wjl9iGg+WAKwkmxddQJo=)
lettuce:
pool:
max-active: -1
......@@ -98,9 +95,9 @@ spring:
prohibition: 600
datasource:
# 由于父框架的问题,这里本来不应该这样写的
url: jdbc:mysql://127.0.0.1:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: root
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: ENC(65KjcBzodj/mXcGa5YEAUg==)
password: ENC(fc4sYisgO1ToW+XX+UWP4ew9bMCT3tKn)
db-name: guns #用来搜集数据库的所有表
filters: wall,mergeStat
driver-class-name: com.mysql.cj.jdbc.Driver
......@@ -179,3 +176,6 @@ messageconfig:
phoneRule:
enabled:
rule:
weixin:
appid: wx0641dc1dc4d34384
appsecret: 3b43b46fc94d4e98588ee6ad992fa5c7
......@@ -72,8 +72,8 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: root
password: root
username: ENC(NzFqyqWumayIAvJvbmNy+g==)
password: ENC(NzFqyqWumayIAvJvbmNy+g==)
redis:
clusterWhether: false
cluster:
......@@ -83,7 +83,7 @@ spring:
database: 0
host: localhost
port: 6379
password: hniPdaqs4$8HH8m6KTP
password: ENC(7pxTOj/J2GJBbNFhIRTz4Q8Wjl9iGg+WAKwkmxddQJo=)
lettuce:
pool:
max-active: -1
......@@ -96,8 +96,8 @@ spring:
prohibition: 600
datasource:
url: jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: AMrGBg6ZSsRrDLs6
username: ENC(NzFqyqWumayIAvJvbmNy+g==)
password: ENC(JxItnS1AAsYjV/dC7khZo8KRypHlPIfaucHkHsfYib8=)
#用来搜集数据库的所有表
db-name: guns
filters: wall,mergeStat
......
......@@ -73,8 +73,8 @@ spring:
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
clusterWhether: false
cluster:
......@@ -98,8 +98,8 @@ spring:
datasource:
# 由于父框架的问题,这里本来不应该这样写的
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
db-name: guns #用来搜集数据库的所有表
filters: wall,mergeStat
driver-class-name: com.mysql.cj.jdbc.Driver
......
......@@ -73,6 +73,8 @@ spring:
port: 5672
username: guest
password: guest
# username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
# password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
clusterWhether: false
cluster:
......@@ -82,7 +84,8 @@ spring:
database: 0
host: localhost
port: 6379
password:
password: hniPdaqs4$8HH8m6KTP
# password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -98,6 +101,8 @@ spring:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
# username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
# password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
db-name: guns #用来搜集数据库的所有表
filters: wall,mergeStat
driver-class-name: com.mysql.cj.jdbc.Driver
......@@ -179,3 +184,6 @@ messageconfig:
weixin:
appid: wx0641dc1dc4d34384
appsecret: 3b43b46fc94d4e98588ee6ad992fa5c7
jasypt:
encryptor:
password: 602927682333704192
......@@ -39,7 +39,22 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
<!-- 为了节省内存,改用jetty -->
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot</artifactId>
</dependency>
<dependency>
<groupId>com.melloware</groupId>
<artifactId>jasypt</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -29,11 +29,11 @@ spring:
max-file-size: 100MB
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: root
# username: root
# password: AMrGBg6ZSsRrDLs6
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: ENC(ttHiJ3xa2HSdZPBS941cQA==)
password: ENC(7sKoBqy3wlYxgx3agqkrpOTPaBaMCwhx)
# username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
# password: ENC(r4U47DSf9LNRyoH/G6GxfA2w1JTZOwr7MREDyGA0PWM=)
zuul:
ribbon:
eager-load:
......@@ -84,3 +84,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -29,8 +29,8 @@ spring:
max-file-size: 100MB
datasource:
url: jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: AMrGBg6ZSsRrDLs6
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: ENC(r4U47DSf9LNRyoH/G6GxfA2w1JTZOwr7MREDyGA0PWM=)
zuul:
ribbon:
eager-load:
......@@ -81,3 +81,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -30,8 +30,8 @@ spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://172.18.101.171:3306/school_center?useSSL=false
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
zuul:
ribbon:
eager-load:
......@@ -82,3 +82,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -30,10 +30,10 @@ spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
# username: root
# password: AMrGBg6ZSsRrDLs6
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
# username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
# password: ENC(r4U47DSf9LNRyoH/G6GxfA2w1JTZOwr7MREDyGA0PWM=)
zuul:
ribbon:
eager-load:
......@@ -84,3 +84,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -21,23 +21,23 @@ spring:
datasource:
db1:
jdbc-url: jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
db2:
#jdbc-url: jdbc:mysql://172.18.101.171:3306/xyjl?useUnicode=true&characterEncoding=utf-8&serverTimezone=CTT&useSSL=false
#username: yzzx
#password: yzzx123!@#
#username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
#password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
jdbc-url: jdbc:mysql://localhost:3306/xyjl?useUnicode=true&characterEncoding=utf-8&serverTimezone=CTT&useSSL=false
username: root
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
db3:
#jdbc-url: jdbc:mysql://172.18.101.171:3306/dzqd?useUnicode=true&characterEncoding=utf-8&serverTimezone=CTT&useSSL=false
#username: yzzx
#password: yzzx123!@#
#username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
#password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
jdbc-url: jdbc:mysql://localhost:3306/dzqd?useUnicode=true&characterEncoding=utf-8&serverTimezone=CTT&useSSL=false
username: root
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
......
......@@ -124,6 +124,10 @@
<artifactId>common</artifactId>
<version>${service.version}</version>
</dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -99,8 +99,8 @@ spring:
rabbitmq:
host: 123.56.82.141
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -111,7 +111,7 @@ spring:
database: 0
host: localhost
port: 6379
password:
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -190,4 +190,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -99,7 +99,7 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: root
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root
redis:
clusterWhether: false
......@@ -110,7 +110,7 @@ spring:
database: 0
host: localhost
port: 6379
password: hniPdaqs4$8HH8m6KTP
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -131,8 +131,8 @@ spring:
datasource:
master:
url: jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: AMrGBg6ZSsRrDLs6
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: ENC(r4U47DSf9LNRyoH/G6GxfA2w1JTZOwr7MREDyGA0PWM=)
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
......@@ -187,3 +187,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -100,8 +100,8 @@ spring:
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -133,8 +133,8 @@ spring:
datasource:
master:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
......@@ -191,4 +191,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -99,8 +99,8 @@ spring:
rabbitmq:
host: 123.56.82.141
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -123,6 +123,9 @@ spring:
exprie: 600
prohibition: 600
datasource:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
dynamic:
primary: master
p6spy: true
......@@ -190,4 +193,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -124,6 +124,10 @@
<artifactId>common</artifactId>
<version>${service.version}</version>
</dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -96,8 +96,8 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -108,7 +108,7 @@ spring:
database: 0
host: localhost
port: 6379
password:
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -187,4 +187,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -97,7 +97,7 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: root
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root
redis:
clusterWhether: false
......@@ -108,7 +108,7 @@ spring:
database: 0
host: localhost
port: 6379
password: hniPdaqs4$8HH8m6KTP
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -129,8 +129,8 @@ spring:
datasource:
master:
url: jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: AMrGBg6ZSsRrDLs6
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: ENC(r4U47DSf9LNRyoH/G6GxfA2w1JTZOwr7MREDyGA0PWM=)
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
......@@ -185,3 +185,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -97,8 +97,8 @@ spring:
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
clusterWhether: false
cluster:
......@@ -129,8 +129,8 @@ spring:
datasource:
master:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
......@@ -185,3 +185,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -98,8 +98,8 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -122,6 +122,9 @@ spring:
exprie: 600
prohibition: 600
datasource:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
dynamic:
primary: master
p6spy: true
......@@ -189,4 +192,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -35,11 +35,28 @@
<commons-net.version>3.3</commons-net.version>
<p6spy.version>3.8.0</p6spy.version>
<dynamic-datasource.version>2.5.6</dynamic-datasource.version>
<jasypt.version>2.0.0</jasypt.version>
<jasypt2.version>2.0.0</jasypt2.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>${jasypt.version}</version>
</dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot</artifactId>
<version>${jasypt.version}</version>
</dependency>
<dependency>
<groupId>com.melloware</groupId>
<artifactId>jasypt</artifactId>
<version>${jasypt2.version}</version>
</dependency>
<dependency>
<groupId>com.winsun.framework</groupId>
<artifactId>winsun-core-common</artifactId>
<version>${winsun-framework.version}</version>
......@@ -86,6 +103,7 @@
<groupId>com.alibaba</groupId>
<version>${druid.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
......
......@@ -124,6 +124,10 @@
<artifactId>common</artifactId>
<version>${service.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.github.ulisesbocchio</groupId>-->
<!-- <artifactId>jasypt-spring-boot-starter</artifactId>-->
<!-- </dependency>-->
</dependencies>
<build>
......
......@@ -96,8 +96,8 @@ spring:
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -108,7 +108,7 @@ spring:
database: 0
host: localhost
port: 6379
password:
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -187,4 +187,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -97,7 +97,7 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: root
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root
redis:
clusterWhether: false
......@@ -108,7 +108,7 @@ spring:
database: 0
host: localhost
port: 6379
password: hniPdaqs4$8HH8m6KTP
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -129,8 +129,8 @@ spring:
datasource:
master:
url: jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: AMrGBg6ZSsRrDLs6
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: ENC(r4U47DSf9LNRyoH/G6GxfA2w1JTZOwr7MREDyGA0PWM=)
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
......@@ -185,3 +185,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -97,8 +97,8 @@ spring:
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
clusterWhether: false
cluster:
......@@ -129,8 +129,8 @@ spring:
datasource:
master:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
......@@ -185,3 +185,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -96,8 +96,8 @@ spring:
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -120,6 +120,9 @@ spring:
exprie: 600
prohibition: 600
datasource:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
dynamic:
primary: master
p6spy: true
......@@ -187,4 +190,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -164,6 +164,10 @@
<artifactId>commons-httpclient</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -97,8 +97,8 @@ spring:
rabbitmq:
host: 123.56.82.141
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
clusterWhether: false
cluster:
......@@ -108,7 +108,7 @@ spring:
database: 0
host: localhost
port: 6379
password:
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......
......@@ -97,7 +97,7 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: root
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root
redis:
clusterWhether: false
......@@ -108,7 +108,7 @@ spring:
database: 0
host: localhost
port: 6379
password: hniPdaqs4$8HH8m6KTP
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -121,8 +121,8 @@ spring:
prohibition: 600
datasource:
url: jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: AMrGBg6ZSsRrDLs6
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: ENC(r4U47DSf9LNRyoH/G6GxfA2w1JTZOwr7MREDyGA0PWM=)
dynamic:
primary: master
p6spy: true
......@@ -188,3 +188,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -97,8 +97,8 @@ spring:
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
clusterWhether: false
cluster:
......@@ -129,8 +129,8 @@ spring:
datasource:
master:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
......
......@@ -98,8 +98,8 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -131,8 +131,8 @@ spring:
datasource:
master:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
......@@ -189,4 +189,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -108,6 +108,10 @@
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
</dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -96,8 +96,8 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -108,7 +108,7 @@ spring:
database: 0
host: localhost
port: 6379
password:
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......
......@@ -98,7 +98,7 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: root
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root
redis:
clusterWhether: false
......@@ -109,7 +109,7 @@ spring:
database: 0
host: localhost
port: 6379
password: hniPdaqs4$8HH8m6KTP
password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce:
pool:
max-active: -1
......@@ -122,8 +122,8 @@ spring:
prohibition: 600
datasource:
url: jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: AMrGBg6ZSsRrDLs6
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: ENC(r4U47DSf9LNRyoH/G6GxfA2w1JTZOwr7MREDyGA0PWM=)
filters: wall,mergeStat
max-active: 20
devtools:
......@@ -181,3 +181,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -98,8 +98,8 @@ spring:
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
clusterWhether: false
cluster:
......@@ -122,8 +122,8 @@ spring:
prohibition: 600
datasource:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
filters: wall,mergeStat
max-active: 20
devtools:
......@@ -181,3 +181,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
......@@ -96,8 +96,8 @@ spring:
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis:
# 是否使用集群模式
clusterWhether: false
......@@ -121,8 +121,8 @@ spring:
prohibition: 600
datasource:
url: jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: yzzx
password: yzzx123!@#
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda)
filters: wall,mergeStat
max-active: 20
devtools:
......@@ -181,3 +181,8 @@ management:
web:
exposure:
include: bus-refresh
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment