浏览代码

配置文件修改

hanqingsong 5 年之前
父节点
当前提交
bcdd19bb1f
共有 2 个文件被更改,包括 116 次插入108 次删除
  1. 1 1
      pom.xml
  2. 115 107
      src/main/resources/bootstrap.yml

+ 1 - 1
pom.xml

@@ -15,7 +15,7 @@
15 15
     <parent>
16 16
         <groupId>org.springframework.boot</groupId>
17 17
         <artifactId>spring-boot-starter-parent</artifactId>
18
-        <version>2.0.0.RELEASE</version>
18
+        <version>2.0.4.RELEASE</version>
19 19
         <relativePath/> <!-- lookup parent from repository -->
20 20
     </parent>
21 21
 

+ 115 - 107
src/main/resources/bootstrap.yml

@@ -1,14 +1,41 @@
1
+spring:
2
+  profiles:
3
+    active: clouda
4
+  jackson:
5
+    date-format: yyyy-MM-dd HH:mm:ss
6
+    time-zone: GMT+8
7
+    #No serializer found for class com.gbasedbt.jdbc.IfxLobInputStream
8
+    #and no properties discovered to create BeanSerializer
9
+    #(to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)
10
+    #(through reference chain: java.util.ArrayList[1]->java.util.HashMap["imgdata"]->com.gbasedbt.jdbc.IfxBblob["binaryStream"])
11
+    # 将Springboot中对Json格式输出的严格控制--JackSon关闭
12
+    # spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=false
13
+    serialization:
14
+      FAIL_ON_EMPTY_BEANS: false
1 15
 server:
2 16
   port: 9028
3 17
   tomcat:
4 18
     uri-encoding: utf-8
5
-  max-http-header-size: 102400
6
-
19
+mybatis:
20
+  config-location: classpath:mybatis/mybatis-config.xml
21
+reportUrl: http://101.36.160.140:8097
22
+#socket地址
23
+socket-url: 58.214.246.30
24
+socket-port: 42121
25
+#设置全局变量判断是云端还是库端;1云端,2本地
26
+localOrCloud: 2
27
+# 多通道气体
28
+gas-org-ids: 386,177
29
+# 数量检测版本区分version3
30
+num_version3: :20013
31
+---
7 32
 # 注册中心配置 defaultZone: http://eureka-depot:9001/eureka/
8 33
 eureka:
9 34
   client:
10 35
     service-url:
11
-      defaultZone: http://eureka-depot-tj:9001/eureka/
36
+      defaultZone: http://localhost:9001/eureka/
37
+    register-with-eureka: false
38
+    fetchRegistry: false
12 39
   instance:
13 40
     prefer-ip-address: true
14 41
     # 每隔10s发送一次心跳(默认30s)
@@ -16,25 +43,8 @@ eureka:
16 43
     # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
17 44
     lease-expiration-duration-in-seconds: 30
18 45
 
19
-
20
-#spring:
21
-#  application:
22
-#    name: depot-intelligent
23
-#  #配置中心配置
24
-#  cloud:
25
-#    config:
26
-#      #使用discovery 时需要将eureka 写到该文件中,开发环境使用该方式,推荐使用。
27
-#      discovery:
28
-#        enabled: true
29
-#        service-id: depot-config-server
30
-#      profile: dev
31
-#      label: master
32
-#  jackson:
33
-#    date-format: yyyy-MM-dd HH:mm:ss
34
-#    time-zone: GMT+8
35
-
36
-
37 46
 spring:
47
+  profiles: locala
38 48
   application:
39 49
     name: depot-intelligent
40 50
   # 数据库配置
@@ -49,9 +59,9 @@ spring:
49 59
     store-type: redis
50 60
   redis:
51 61
     database: 2
52
-    host: 192.168.123.98
53
-    port: 6666
54
-    password: depotredis
62
+    host: 127.0.0.1
63
+    port: 6379
64
+    password:
55 65
     timeout: 3000
56 66
     jedis:
57 67
       pool:
@@ -59,88 +69,86 @@ spring:
59 69
         max-wait: -1
60 70
         max-idle: 8
61 71
         min-idle: 0
62
-  jackson:
63
-    date-format: yyyy-MM-dd HH:mm:ss
64
-    time-zone: GMT+8
65
-    serialization:
66
-      FAIL_ON_EMPTY_BEANS: false
67
-#socket地址
68
-socket-url: 58.214.246.30
69
-socket-port: 42121
70
-
71
-#设置全局变量判断是云端还是库端;1云端,2本地
72
-localOrCloud: 2
73
-
74
-reportUrl: http://101.36.160.140:8097
75
-
76
-
77
-## ==============================================应急端========================================================
78
-#server:
79
-#  port: 9028
80
-#  tomcat:
81
-#    uri-encoding: utf-8
82
-#  max-http-header-size: 102400
83
-#
84
-## 注册中心配置 defaultZone: http://eureka-depot:9001/eureka/
85
-#eureka:
86
-#  client:
87
-#    service-url:
88
-#      defaultZone: http://eureka-depot:9001/eureka/
89
-#    registerWithEureka: false
90
-#    fetchRegistry: false
91
-#  instance:
92
-#    prefer-ip-address: true
93
-#    ip-address: eureka-depot
94
-#    status-page-url: http://eureka-depot:${server.port}/swagger-ui.html
95
-#    instance-id: ${eureka.instance.ip-address}:${server.port}
96
-#
97
-#spring:
98
-#  # 数据库配置
99
-#  datasource:
100
-#    driver-class-name: com.mysql.jdbc.Driver
101
-#    url: jdbc:mysql://localhost:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
102
-#    username: root
103
-#    password: 123456
104
-#  # 缓存配置
105
-#  session:
106
-#    store-type: redis
107
-#  redis:
108
-#    database: 0
109
-#    host: 127.0.0.1
110
-#    port: 6379
111
-#    password:
112
-#    timeout: 3000
113
-#    jedis:
114
-#      pool:
115
-#        max-active: 8
116
-#        max-wait: -1
117
-#        max-idle: 8
118
-#        min-idle: 0
119
-#  # 静态资源配置
120
-#  resources:
121
-#    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
122
-#  jackson:
123
-#    date-format: yyyy-MM-dd HH:mm:ss
124
-#    time-zone: GMT+8
125
-#  jmx:
126
-#    default-domain: depotIntelligent
127
-#
128
-#web:
129
-#  upload-path: D:/upload
130
-#
131
-##socket地址
132
-##socket-url: 127.0.0.1
133
-##socket-port: 8999
134
-#socket-url: localhost
135
-#socket-port: 8999
136
-#
137
-##设置全局变量判断是云端还是库端;1云端,2本地
138
-#localOrCloud: 2
72
+web:
73
+  upload-path: D:/upload/image
74
+logging:
75
+    level:
76
+      com.chinaitop.depot.intelligent.basicdata.mapper: DEBUG
77
+---
78
+# 注册中心配置 defaultZone: http://eureka-depot:9001/eureka/
79
+eureka:
80
+  client:
81
+    service-url:
82
+      defaultZone: http://172.16.0.4:9811/eureka/
83
+  instance:
84
+    prefer-ip-address: true
85
+    # 每隔10s发送一次心跳(默认30s)
86
+    lease-renewal-interval-in-seconds: 10
87
+    # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
88
+    lease-expiration-duration-in-seconds: 30
139 89
 
140
-# 多通道气体
141
-gas-org-ids: 386,177
90
+spring:
91
+  profiles: clouda
92
+  application:
93
+    name: depot-intelligent
94
+  # 数据库配置
95
+  datasource:
96
+    type: com.alibaba.druid.pool.DruidDataSource
97
+    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;
98
+    username: gbasedbt
99
+    password: cDbK2S0go8
100
+    driver-class-name: com.gbasedbt.jdbc.IfxDriver
101
+  # 缓存配置 host: redis-depot
102
+  session:
103
+    store-type: redis
104
+  redis:
105
+    database: 4
106
+    host: 172.16.0.46
107
+    port: 6679
108
+    password: 123456
109
+    timeout: 3000
110
+    jedis:
111
+      pool:
112
+        max-active: 8
113
+        max-wait: -1
114
+        max-idle: 8
115
+        min-idle: 0
116
+---
117
+# 注册中心配置 defaultZone: http://eureka-depot:9001/eureka/
118
+eureka:
119
+  client:
120
+    service-url:
121
+      defaultZone: http://eureka-depot-tj:9001/eureka/
122
+  instance:
123
+    prefer-ip-address: true
124
+    # 每隔10s发送一次心跳(默认30s)
125
+    lease-renewal-interval-in-seconds: 10
126
+    # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
127
+    lease-expiration-duration-in-seconds: 30
142 128
 
143
-# 数量检测版本区分version3
144
-num_version3: :20013
145
-mybatis:
146
-  config-location: classpath:mybatis/mybatis-config.xml
129
+spring:
130
+  profiles: prop
131
+  application:
132
+    name: depot-intelligent
133
+  # 数据库配置
134
+  datasource:
135
+    type: com.alibaba.druid.pool.DruidDataSource
136
+    url: jdbc:gbasedbt-sqli://111.164.113.172:666/depot:INFORMIXSERVER=depot;
137
+    username: gbasedbt
138
+    password: GBase123
139
+    driver-class-name: com.gbasedbt.jdbc.IfxDriver
140
+  # 缓存配置 host: redis-depot
141
+  session:
142
+    store-type: redis
143
+  redis:
144
+    database: 0
145
+    host: 127.0.0.1
146
+    port: 6379
147
+    password:
148
+    timeout: 3000
149
+    jedis:
150
+      pool:
151
+        max-active: 8
152
+        max-wait: -1
153
+        max-idle: 8
154
+        min-idle: 0