|
|
@@ -7,22 +7,40 @@ server:
|
|
7
|
7
|
eureka:
|
|
8
|
8
|
client:
|
|
9
|
9
|
service-url:
|
|
10
|
|
- defaultZone: http://172.16.3.45:9001/eureka/
|
|
|
10
|
+ defaultZone: http://eureka-depot-yn:9001/eureka/
|
|
11
|
11
|
instance:
|
|
12
|
12
|
prefer-ip-address: true
|
|
13
|
13
|
|
|
14
|
14
|
spring:
|
|
15
|
15
|
application:
|
|
16
|
16
|
name: depot-keeper-house
|
|
17
|
|
- #配置中心配置
|
|
18
|
|
- cloud:
|
|
19
|
|
- config:
|
|
20
|
|
- #使用discovery 时需要将eureka 写到该文件中,开发环境使用该方式,推荐使用。
|
|
21
|
|
- discovery:
|
|
22
|
|
- enabled: true
|
|
23
|
|
- service-id: depot-config-server
|
|
24
|
|
- profile: dev
|
|
25
|
|
- label: master
|
|
|
17
|
+ # 数据库配置
|
|
|
18
|
+ datasource:
|
|
|
19
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
|
20
|
+ url: jdbc:mysql://192.168.123.38:3306/depot_yunnan?useUnicode=true&characterEncoding=utf-8
|
|
|
21
|
+ username: root
|
|
|
22
|
+ password: 123456
|
|
|
23
|
+ # 缓存配置
|
|
|
24
|
+ session:
|
|
|
25
|
+ store-type: redis
|
|
|
26
|
+ redis:
|
|
|
27
|
+ database: 0
|
|
|
28
|
+ host: 192.168.123.98
|
|
|
29
|
+ port: 6666
|
|
|
30
|
+ password: depotredis
|
|
|
31
|
+ timeout: 3000
|
|
|
32
|
+ jedis:
|
|
|
33
|
+ pool:
|
|
|
34
|
+ max-active: 8
|
|
|
35
|
+ max-wait: -1
|
|
|
36
|
+ max-idle: 8
|
|
|
37
|
+ min-idle: 0
|
|
|
38
|
+ # 静态资源配置
|
|
|
39
|
+ resources:
|
|
|
40
|
+ static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
|
|
|
41
|
+
|
|
|
42
|
+web:
|
|
|
43
|
+ upload-path: /home
|
|
26
|
44
|
|
|
27
|
45
|
jackson:
|
|
28
|
46
|
date-format: yyyy-MM-dd
|