Browse Source

修改game mt配置

pt
ma 5 years ago
parent
commit
57f34f41eb
  1. 3
      game/src/main/resources/application-prod.yml
  2. 4
      game/src/main/resources/application.yml
  3. 10
      mt/src/main/resources/application-prod.yml
  4. 4
      mt/src/main/resources/application.yml
  5. 6
      mt/src/main/resources/druid-prod.yml
  6. 32
      util/src/test/java/com/ccsens/util/VideoTest.java

3
game/src/main/resources/application-prod.yml

@ -32,7 +32,8 @@ swagger:
enable: true enable: true
eureka: eureka:
instance: instance:
ip-address: 119.3.214.36 # ip-address: 119.3.214.36
ip-address: 121.36.106.168
gatewayUrl: https://www.tall.wiki/gateway/ gatewayUrl: https://www.tall.wiki/gateway/
notGatewayUrl: https://www.tall.wiki/ notGatewayUrl: https://www.tall.wiki/

4
game/src/main/resources/application.yml

@ -1,4 +1,4 @@
spring: spring:
profiles: profiles:
active: dev active: prod
include: common, util-dev include: common, util-prod

10
mt/src/main/resources/application-prod.yml

@ -8,7 +8,7 @@ spring:
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
rabbitmq: rabbitmq:
host: 127.0.0.1 host: 121.36.3.207
password: 111111 password: 111111
port: 5672 port: 5672
username: admin username: admin
@ -21,16 +21,16 @@ spring:
max-idle: 10 max-idle: 10
max-wait: -1ms max-wait: -1ms
min-idle: 0 min-idle: 0
# password: '' password: ''
password: 'areowqr!@43ef' # password: 'areowqr!@43ef'
port: 6379 port: 6379
timeout: 1000ms timeout: 1000ms
swagger: swagger:
enable: true enable: true
eureka: eureka:
instance: instance:
ip-address: 127.0.0.1 # ip-address: 127.0.0.1
# ip-address: 119.3.214.36 ip-address: 121.36.106.168
gatewayUrl: https://www.tall.wiki/gateway/ gatewayUrl: https://www.tall.wiki/gateway/
notGatewayUrl: https://www.tall.wiki/ notGatewayUrl: https://www.tall.wiki/

4
mt/src/main/resources/application.yml

@ -1,6 +1,6 @@
spring: spring:
profiles: profiles:
active: dev active: prod
include: common, util-dev include: common, util-prod

6
mt/src/main/resources/druid-prod.yml

@ -15,8 +15,8 @@ spring:
maxWait: 60000 maxWait: 60000
minEvictableIdleTimeMillis: 300000 minEvictableIdleTimeMillis: 300000
minIdle: 5 minIdle: 5
password: # password:
# password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473 password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473
poolPreparedStatements: true poolPreparedStatements: true
servletLogSlowSql: true servletLogSlowSql: true
servletLoginPassword: 111111 servletLoginPassword: 111111
@ -28,7 +28,7 @@ spring:
testOnReturn: false testOnReturn: false
testWhileIdle: true testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000 timeBetweenEvictionRunsMillis: 60000
url: jdbc:mysql://127.0.0.1/mt?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true url: jdbc:mysql://121.36.3.207/mt?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
username: root username: root
validationQuery: SELECT 1 FROM DUAL validationQuery: SELECT 1 FROM DUAL
env: CCSENS_TALL env: CCSENS_TALL

32
util/src/test/java/com/ccsens/util/VideoTest.java

@ -98,22 +98,22 @@ public class VideoTest {
// 指定资源地址,下载文件测试 // 指定资源地址,下载文件测试
// downloadFile("http://1258473962.vod2.myqcloud.com/1e124671vodcq1258473962/76557f735285890810478037694/VCj25SXUgFsA.mp4", "D:/temp/"); // downloadFile("http://1258473962.vod2.myqcloud.com/1e124671vodcq1258473962/76557f735285890810478037694/VCj25SXUgFsA.mp4", "D:/temp/");
// List<Object[]> objects = PoiUtil.readExce(new File("C:\\Users\\逗\\Desktop\\跳绳比赛选手证件照.xlsx"), 0, null, 0, false); List<Object[]> objects = PoiUtil.readExce(new File("C:\\Users\\10626\\Desktop\\跳绳比赛选手证件照.xlsx"), 0, null, 0, false);
// for (int i = 0; i < objects.size(); i++) { for (int i = 0; i < objects.size(); i++) {
// Object[] obj = objects.get(i); Object[] obj = objects.get(i);
// if (obj == null || obj.length < 4) { if (obj == null || obj.length < 4) {
// continue; continue;
// } }
// String path = (String)obj[3]; String path = (String)obj[3];
// String dir = "D:\\选手证件照\\" + obj[0] + "\\" + obj[1] + "\\" + obj[2]; String dir = "D:\\跳绳\\太原站\\" + obj[0] + "\\" + obj[1] + "\\" + obj[2];
// try{ try{
// downloadFile(path, dir); downloadFile(path, dir);
// } catch (Exception e) { } catch (Exception e) {
// System.out.println("下载失败:" + dir); System.out.println("下载失败:" + dir);
// e.printStackTrace(); e.printStackTrace();
//
// } }
// } }
} }
} }

Loading…
Cancel
Save