|
@@ -2,56 +2,10 @@ server:
|
2
|
2
|
port: 9027
|
3
|
3
|
tomcat:
|
4
|
4
|
uri-encoding: utf-8
|
5
|
|
-
|
6
|
|
-# 注册中心配置
|
7
|
|
-eureka:
|
8
|
|
- client:
|
9
|
|
- service-url:
|
10
|
|
- defaultZone: http://localhost:9001/eureka/
|
11
|
|
- instance:
|
12
|
|
- hostname: localhost
|
13
|
|
- prefer-ip-address: true
|
14
|
|
- # 每隔10s发送一次心跳(默认30s)
|
15
|
|
- lease-renewal-interval-in-seconds: 10
|
16
|
|
- # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
|
17
|
|
- lease-expiration-duration-in-seconds: 30
|
18
|
|
- status-page-url: http://${eureka.instance.hostname}:${server.port}/swagger-ui.html
|
19
|
|
-
|
20
|
|
-mybatis:
|
21
|
|
- config-location: classpath:mybatis/mybatis-config.xml
|
22
|
|
-
|
23
|
5
|
spring:
|
24
|
6
|
application:
|
25
|
7
|
name: depot-agent
|
26
|
|
- # 数据库配置
|
27
|
|
- datasource:
|
28
|
|
- driver-class-name: com.mysql.jdbc.Driver
|
29
|
|
- url: jdbc:mysql://101.36.160.140:10311/depot_qh?useUnicode=true&characterEncoding=utf-8
|
30
|
|
- username: root
|
31
|
|
- password: admin@1234
|
32
|
|
- # 缓存配置
|
33
|
|
- session:
|
34
|
|
- store-type: redis
|
35
|
|
- redis:
|
36
|
|
- database: 0
|
37
|
|
- host: 101.36.160.140
|
38
|
|
- port: 10316
|
39
|
|
- password: admin@1234
|
40
|
|
- timeout: 3000
|
41
|
|
- jedis:
|
42
|
|
- pool:
|
43
|
|
- max-active: 8
|
44
|
|
- max-wait: -1
|
45
|
|
- max-idle: 8
|
46
|
|
- min-idle: 0
|
47
|
|
- # 静态资源配置
|
48
|
|
- resources:
|
49
|
|
- static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
|
50
|
|
-
|
51
|
|
-web:
|
52
|
|
- upload-path: /home/depot/depot-web/apache-tomcat-8.0.53/webapps/ROOT/WEB-INF/classes/static
|
53
|
|
-
|
54
|
|
-cxf:
|
55
|
|
- path: /archive
|
56
|
|
-
|
57
|
|
-#logging.level.com.chinaitop.depot.agent.crk.mapper=debug
|
|
8
|
+ profiles:
|
|
9
|
+ active: dev
|
|
10
|
+mybatis:
|
|
11
|
+ config-location: classpath:mybatis/mybatis-config.xml
|