Commit 4a1950a4 by 陈浩建

配置文件敏感信息加密

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