|
|
@@ -2,60 +2,10 @@ server:
|
|
2
|
2
|
port: 9004
|
|
3
|
3
|
tomcat:
|
|
4
|
4
|
uri-encoding: utf-8
|
|
5
|
|
-mybatis:
|
|
6
|
|
- config-location: classpath:mybatis/mybatis-config.xml
|
|
7
|
|
-feign:
|
|
8
|
|
- hystrix:
|
|
9
|
|
- enabled: true # 开启Feign熔断
|
|
10
|
|
-
|
|
11
|
|
-#开发环境
|
|
12
|
|
-# 注册中心配置
|
|
13
|
|
-eureka:
|
|
14
|
|
- client:
|
|
15
|
|
- service-url:
|
|
16
|
|
- defaultZone: http://localhost:9001/eureka/
|
|
17
|
|
- #register-with-eureka: false
|
|
18
|
|
- #fetchRegistry: false
|
|
19
|
|
- instance:
|
|
20
|
|
- hostname: localhost
|
|
21
|
|
- #hostname: localhost
|
|
22
|
|
- prefer-ip-address: true
|
|
23
|
|
- lease-renewal-interval-in-seconds: 10
|
|
24
|
|
- lease-expiration-duration-in-seconds: 30
|
|
25
|
|
- status-page-url: http://${eureka.instance.hostname}:${server.port}/swagger-ui.html
|
|
26
|
|
-
|
|
27
|
5
|
spring:
|
|
28
|
6
|
application:
|
|
29
|
7
|
name: depot-shared
|
|
30
|
|
- # 数据库配置
|
|
31
|
|
- datasource:
|
|
32
|
|
- driver-class-name: com.mysql.jdbc.Driver
|
|
33
|
|
- url: jdbc:mysql://101.36.160.140:10311/depot_qh?useUnicode=true&characterEncoding=utf-8
|
|
34
|
|
- username: root
|
|
35
|
|
- password: admin@1234
|
|
36
|
|
- # 缓存配置 host: redis-depot
|
|
37
|
|
- session:
|
|
38
|
|
- store-type: redis
|
|
39
|
|
- redis:
|
|
40
|
|
- database: 0
|
|
41
|
|
- host: 101.36.160.140
|
|
42
|
|
- port: 10316
|
|
43
|
|
- password: admin@1234
|
|
44
|
|
- timeout: 3000
|
|
45
|
|
- jedis:
|
|
46
|
|
- pool:
|
|
47
|
|
- max-active: 8
|
|
48
|
|
- max-wait: -1
|
|
49
|
|
- max-idle: 8
|
|
50
|
|
- min-idle: 0
|
|
51
|
|
- servlet:
|
|
52
|
|
- multipart:
|
|
53
|
|
- max-file-size: 20MB
|
|
54
|
|
- max-request-size: 20MB
|
|
55
|
|
-# 设置是否开放swagger API接口
|
|
56
|
|
-swagger:
|
|
57
|
|
- enabled: true
|
|
58
|
|
-# 配置控制台打印sql 测试用
|
|
59
|
|
-#logging:
|
|
60
|
|
-# level:
|
|
61
|
|
-# com.chinaitop.depot.grainSituationCard.mapper: DEBUG #包路径为mapper文件包路径
|
|
|
8
|
+ profiles:
|
|
|
9
|
+ active: dev
|
|
|
10
|
+mybatis:
|
|
|
11
|
+ config-location: classpath:mybatis/mybatis-config.xml
|