Procházet zdrojové kódy

药剂测试配置文件修改

hanqingsong před 5 roky
rodič
revize
f586cd8f84
1 změnil soubory, kde provedl 52 přidání a 5 odebrání
  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 4
 server:
2 5
   port: 9004
3 6
   tomcat:
4 7
     uri-encoding: utf-8
5
-
8
+---
6 9
 # 注册中心配置
7 10
 eureka:
8 11
   client:
9 12
     service-url:
10 13
       defaultZone: http://eureka-depot-yn:9001/eureka/
14
+    register-with-eureka: false
15
+    fetch-registry: false
11 16
   instance:
12 17
     prefer-ip-address: true
13 18
     lease-renewal-interval-in-seconds: 10
14 19
     lease-expiration-duration-in-seconds: 30
15 20
 spring:
21
+  profiles: locala
16 22
   application:
17 23
     name: depot-drug-manage
18 24
   # 数据库配置
19 25
   datasource:
20 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 28
     username: root
23 29
     password: 123456
24 30
   # 缓存配置 host: redis-depot
@@ -26,9 +32,50 @@ spring:
26 32
     store-type: redis
27 33
   redis:
28 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 79
     timeout: 3000
33 80
     jedis:
34 81
       pool: