Selaa lähdekoodia

药剂测试配置文件修改

hanqingsong 5 vuotta sitten
vanhempi
commit
f586cd8f84
1 muutettua tiedostoa jossa 52 lisäystä ja 5 poistoa
  1. 52 5
      src/main/resources/bootstrap.yml

+ 52 - 5
src/main/resources/bootstrap.yml

@@ -1,24 +1,30 @@
1
+spring:
2
+  profiles:
3
+    active: clouda
1
 server:
4
 server:
2
   port: 9004
5
   port: 9004
3
   tomcat:
6
   tomcat:
4
     uri-encoding: utf-8
7
     uri-encoding: utf-8
5
-
8
+---
6
 # 注册中心配置
9
 # 注册中心配置
7
 eureka:
10
 eureka:
8
   client:
11
   client:
9
     service-url:
12
     service-url:
10
       defaultZone: http://eureka-depot-yn:9001/eureka/
13
       defaultZone: http://eureka-depot-yn:9001/eureka/
14
+    register-with-eureka: false
15
+    fetch-registry: false
11
   instance:
16
   instance:
12
     prefer-ip-address: true
17
     prefer-ip-address: true
13
     lease-renewal-interval-in-seconds: 10
18
     lease-renewal-interval-in-seconds: 10
14
     lease-expiration-duration-in-seconds: 30
19
     lease-expiration-duration-in-seconds: 30
15
 spring:
20
 spring:
21
+  profiles: locala
16
   application:
22
   application:
17
     name: depot-drug-manage
23
     name: depot-drug-manage
18
   # 数据库配置
24
   # 数据库配置
19
   datasource:
25
   datasource:
20
     driver-class-name: com.mysql.jdbc.Driver
26
     driver-class-name: com.mysql.jdbc.Driver
21
-    url: jdbc:mysql://192.168.123.38:3306/depot_yunnan?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
27
+    url: jdbc:mysql://localhost:3306/depot_yunnan?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
22
     username: root
28
     username: root
23
     password: 123456
29
     password: 123456
24
   # 缓存配置 host: redis-depot
30
   # 缓存配置 host: redis-depot
@@ -26,9 +32,50 @@ spring:
26
     store-type: redis
32
     store-type: redis
27
   redis:
33
   redis:
28
     database: 0
34
     database: 0
29
-    host: 192.168.123.98
30
-    port: 6666
31
-    password: depotredis
35
+    host: 127.0.0.1
36
+    port: 6379
37
+    password:
38
+    timeout: 3000
39
+    jedis:
40
+      pool:
41
+        max-active: 8
42
+        max-wait: -1
43
+        max-idle: 8
44
+        min-idle: 0
45
+  # 静态资源配置
46
+  resources:
47
+    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
48
+
49
+web:
50
+  upload-path: /home
51
+---
52
+# 注册中心配置
53
+eureka:
54
+  client:
55
+    service-url:
56
+      defaultZone: http://172.16.0.46:9511/eureka/
57
+  instance:
58
+    prefer-ip-address: true
59
+    lease-renewal-interval-in-seconds: 10
60
+    lease-expiration-duration-in-seconds: 30
61
+spring:
62
+  profiles: clouda
63
+  application:
64
+    name: depot-drug-manage
65
+  # 数据库配置
66
+  datasource:
67
+    driver-class-name: com.mysql.jdbc.Driver
68
+    url: jdbc:mysql://172.16.0.46:3306/depot-yunnan?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
69
+    username: root
70
+    password: 123456
71
+  # 缓存配置 host: redis-depot
72
+  session:
73
+    store-type: redis
74
+  redis:
75
+    database: 1
76
+    host: 172.16.0.46
77
+    port: 6679
78
+    password: 123456
32
     timeout: 3000
79
     timeout: 3000
33
     jedis:
80
     jedis:
34
       pool:
81
       pool: