Commit 27ac8194 by 陈浩建

配置文件修改

parent 8e6c7253
...@@ -98,7 +98,7 @@ spring: ...@@ -98,7 +98,7 @@ spring:
host: localhost host: localhost
port: 5672 port: 5672
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root password: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
redis: redis:
clusterWhether: false clusterWhether: false
cluster: cluster:
......
...@@ -108,7 +108,7 @@ spring: ...@@ -108,7 +108,7 @@ spring:
database: 0 database: 0
host: schoolcenterredis host: schoolcenterredis
port: 6379 port: 6379
password: password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce: lettuce:
pool: pool:
max-active: -1 max-active: -1
...@@ -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
...@@ -128,9 +131,9 @@ spring: ...@@ -128,9 +131,9 @@ spring:
max-active: 30 max-active: 30
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: ${spring.datasource.url}
username: ENC(CT4X/xOJCLwK1IJtuZZN/A==) username: ${spring.datasource.username}
password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda) password: ${spring.datasource.password}
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
devtools: devtools:
restart: restart:
......
...@@ -29,7 +29,6 @@ public class WinsunCoreServiceApplication { ...@@ -29,7 +29,6 @@ public class WinsunCoreServiceApplication {
private final static Logger logger = LoggerFactory.getLogger(WinsunCoreServiceApplication.class); private final static Logger logger = LoggerFactory.getLogger(WinsunCoreServiceApplication.class);
public static void main(String[] args) { public static void main(String[] args) {
System.setProperty("jasypt.encryptor.password", Const.JASYPT_ENCRYPTOR_PASSWORD);
SpringApplication.run(WinsunCoreServiceApplication.class, args); SpringApplication.run(WinsunCoreServiceApplication.class, args);
logger.info("{} is success!", WinsunCoreServiceApplication.class.getName()); logger.info("{} is success!", WinsunCoreServiceApplication.class.getName());
} }
......
...@@ -71,8 +71,8 @@ spring: ...@@ -71,8 +71,8 @@ spring:
rabbitmq: rabbitmq:
host: localhost host: localhost
port: 5672 port: 5672
username: ENC(bejPzANsFWjq/OahirFIYg==) username: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
password: ENC(bejPzANsFWjq/OahirFIYg==) password: ENC(Jm+qlQikhtTS1xupsT/bLQ==)
redis: redis:
clusterWhether: false clusterWhether: false
cluster: cluster:
...@@ -82,7 +82,7 @@ spring: ...@@ -82,7 +82,7 @@ spring:
database: 0 database: 0
host: localhost host: localhost
port: 6379 port: 6379
password: ENC(7pxTOj/J2GJBbNFhIRTz4Q8Wjl9iGg+WAKwkmxddQJo=) password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
lettuce: lettuce:
pool: pool:
max-active: -1 max-active: -1
...@@ -96,8 +96,8 @@ spring: ...@@ -96,8 +96,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: ENC(65KjcBzodj/mXcGa5YEAUg==) username: ENC(CT4X/xOJCLwK1IJtuZZN/A==)
password: ENC(fc4sYisgO1ToW+XX+UWP4ew9bMCT3tKn) 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 +179,8 @@ messageconfig: ...@@ -179,3 +179,8 @@ messageconfig:
weixin: weixin:
appid: wx0641dc1dc4d34384 appid: wx0641dc1dc4d34384
appsecret: 3b43b46fc94d4e98588ee6ad992fa5c7 appsecret: 3b43b46fc94d4e98588ee6ad992fa5c7
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
...@@ -72,8 +72,8 @@ spring: ...@@ -72,8 +72,8 @@ spring:
rabbitmq: rabbitmq:
host: localhost host: localhost
port: 5672 port: 5672
username: ENC(NzFqyqWumayIAvJvbmNy+g==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: ENC(NzFqyqWumayIAvJvbmNy+g==) password: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
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: ENC(7pxTOj/J2GJBbNFhIRTz4Q8Wjl9iGg+WAKwkmxddQJo=) password: ENC(dzBR0ihAkOs43UgnwmnQfFpmjbWvfqmtOIwwgra/+ik=)
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: ENC(NzFqyqWumayIAvJvbmNy+g==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: ENC(JxItnS1AAsYjV/dC7khZo8KRypHlPIfaucHkHsfYib8=) password: ENC(r4U47DSf9LNRyoH/G6GxfA2w1JTZOwr7MREDyGA0PWM=)
#用来搜集数据库的所有表 #用来搜集数据库的所有表
db-name: guns db-name: guns
filters: wall,mergeStat filters: wall,mergeStat
...@@ -149,3 +149,8 @@ messageconfig: ...@@ -149,3 +149,8 @@ messageconfig:
weixin: weixin:
appid: wx0641dc1dc4d34384 appid: wx0641dc1dc4d34384
appsecret: 3b43b46fc94d4e98588ee6ad992fa5c7 appsecret: 3b43b46fc94d4e98588ee6ad992fa5c7
#jasypt加密的盐值
#jasypt.encryptor.password=erp
jasypt:
encryptor:
password: schoolCenterErp
package com.winsun.user; package com.winsun.user;
import com.winsun.auth.core.common.model.ResponseData;
import com.winsun.auth.model.user.User;
import com.winsun.base.AppApplicationBaseIT; import com.winsun.base.AppApplicationBaseIT;
import com.winsun.item.modular.system.dao.UserMapper; import com.winsun.item.modular.system.dao.UserMapper;
import com.winsun.item.util.LoginUtils;
import com.winsun.utils.RandomUtil;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.junit.Test; import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
...@@ -22,7 +22,7 @@ spring: ...@@ -22,7 +22,7 @@ spring:
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: ENC(z8WG0Zar99IzLr3L9Z3mOw==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root password: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
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
...@@ -30,7 +30,7 @@ spring: ...@@ -30,7 +30,7 @@ spring:
#password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda) #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: ENC(z8WG0Zar99IzLr3L9Z3mOw==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root password: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
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
...@@ -38,7 +38,7 @@ spring: ...@@ -38,7 +38,7 @@ spring:
#password: ENC(IQRisTAAktGkj1rrrEvpXpImI0FyRfda) #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: ENC(z8WG0Zar99IzLr3L9Z3mOw==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root password: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
...@@ -100,7 +100,7 @@ spring: ...@@ -100,7 +100,7 @@ spring:
host: localhost host: localhost
port: 5672 port: 5672
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root password: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
redis: redis:
clusterWhether: false clusterWhether: false
cluster: cluster:
......
...@@ -98,7 +98,7 @@ spring: ...@@ -98,7 +98,7 @@ spring:
host: localhost host: localhost
port: 5672 port: 5672
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root password: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
redis: redis:
clusterWhether: false clusterWhether: false
cluster: cluster:
......
...@@ -103,7 +103,6 @@ ...@@ -103,7 +103,6 @@
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<version>${druid.version}</version> <version>${druid.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
......
...@@ -98,7 +98,7 @@ spring: ...@@ -98,7 +98,7 @@ spring:
host: localhost host: localhost
port: 5672 port: 5672
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root password: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
redis: redis:
clusterWhether: false clusterWhether: false
cluster: cluster:
......
...@@ -98,7 +98,7 @@ spring: ...@@ -98,7 +98,7 @@ spring:
host: localhost host: localhost
port: 5672 port: 5672
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root password: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
redis: redis:
clusterWhether: false clusterWhether: false
cluster: cluster:
......
...@@ -99,7 +99,7 @@ spring: ...@@ -99,7 +99,7 @@ spring:
host: localhost host: localhost
port: 5672 port: 5672
username: ENC(z8WG0Zar99IzLr3L9Z3mOw==) username: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
password: root password: ENC(z8WG0Zar99IzLr3L9Z3mOw==)
redis: redis:
clusterWhether: false clusterWhether: false
cluster: cluster:
......
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