浏览代码

市平台调用测温接口初始提交

hanqingsong 5 年之前
父节点
当前提交
6d347433fc
共有 1 个文件被更改,包括 23 次插入18 次删除
  1. 23 18
      src/main/resources/application.yml

+ 23 - 18
src/main/resources/application.yml

@@ -4,26 +4,29 @@ server:
4 4
     uri-encoding: utf-8
5 5
 spring:
6 6
   profiles:
7
-    active: testing
7
+    active: clouda
8 8
 mybatis:
9 9
   config-location: classpath:mybatis/mybatis-config.xml
10 10
 ---
11 11
 # 本地开发环境
12 12
 spring:
13
-  profiles: local_dev
13
+  profiles: locala
14 14
   application:
15 15
     name: depot-api
16 16
   # 数据库配置
17 17
   datasource:
18
-    driver-class-name: com.mysql.jdbc.Driver
19
-    url: jdbc:mysql://localhost:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
20
-    username: root
21
-    password: 123456
18
+    type: com.alibaba.druid.pool.DruidDataSource
19
+    url: jdbc:gbasedbt-sqli://101.36.160.140:19089/depot:INFORMIXSERVER=ol_gbasedbt1210;NEWCODESET=GB18030,GB18030-2000,5488;DB_LOCALE=zh_cn.GB18030-2000;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
20
+    username: gbasedbt
21
+    password: cDbK2S0go8
22
+    driver-class-name: com.gbasedbt.jdbc.IfxDriver
22 23
 # 注册中心配置
23 24
 eureka:
24 25
   client:
25 26
     service-url:
26 27
       defaultZone: http://${spring.cloud.client.ip-address}:9001/eureka/
28
+    register-with-eureka: false
29
+    fetch-registry: false
27 30
   instance:
28 31
     prefer-ip-address: true
29 32
     # 每隔10s发送一次心跳(默认30s)
@@ -31,22 +34,23 @@ eureka:
31 34
     # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
32 35
     lease-expiration-duration-in-seconds: 30
33 36
 ---
34
-# 98测试环境
37
+# 紫光云测试环境
35 38
 spring:
36
-  profiles: testing
39
+  profiles: clouda
37 40
   application:
38 41
     name: depot-api
39 42
   # 数据库配置
40 43
   datasource:
41
-    driver-class-name: com.mysql.jdbc.Driver
42
-    url: jdbc:mysql://192.168.123.38:3306/depot_tianjin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
43
-    username: root
44
-    password: 123456
44
+    type: com.alibaba.druid.pool.DruidDataSource
45
+    url: jdbc:gbasedbt-sqli://101.36.160.140:19089/depot:INFORMIXSERVER=ol_gbasedbt1210;NEWCODESET=GB18030,GB18030-2000,5488;DB_LOCALE=zh_cn.GB18030-2000;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
46
+    username: gbasedbt
47
+    password: cDbK2S0go8
48
+    driver-class-name: com.gbasedbt.jdbc.IfxDriver
45 49
 # 注册中心配置
46 50
 eureka:
47 51
   client:
48 52
     service-url:
49
-      defaultZone: http://eureka-depot-tj:9001/eureka/
53
+      defaultZone: http://172.16.0.4:9811/eureka/
50 54
   instance:
51 55
     prefer-ip-address: true
52 56
     # 每隔10s发送一次心跳(默认30s)
@@ -56,15 +60,16 @@ eureka:
56 60
 ---
57 61
 # 政务云
58 62
 spring:
59
-  profiles: prop_tianjin
63
+  profiles: prop
60 64
   application:
61 65
     name: depot-api
62 66
   # 数据库配置
63 67
   datasource:
64
-    driver-class-name: com.mysql.jdbc.Driver
65
-    url: jdbc:mysql://localhost:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
66
-    username: root
67
-    password: 123456
68
+    type: com.alibaba.druid.pool.DruidDataSource
69
+    url: jdbc:gbasedbt-sqli://111.164.113.172:666/depot:INFORMIXSERVER=depot;
70
+    username: gbasedbt
71
+    password: GBase123
72
+    driver-class-name: com.gbasedbt.jdbc.IfxDriver
68 73
 # 注册中心配置
69 74
 eureka:
70 75
   client: