|
|
@@ -3,25 +3,53 @@ server:
|
|
3
|
3
|
tomcat:
|
|
4
|
4
|
basedir: /unis/app/deploy/temp
|
|
5
|
5
|
spring:
|
|
|
6
|
+ jpa:
|
|
|
7
|
+ open-in-view: true
|
|
|
8
|
+ database: mysql
|
|
|
9
|
+ show-sql: true
|
|
|
10
|
+ properties:
|
|
|
11
|
+ hibernate:
|
|
|
12
|
+ dialect: org.hibernate.dialect.MySQLDialect
|
|
6
|
13
|
application:
|
|
7
|
14
|
name: indicator-app
|
|
8
|
|
- servlet:
|
|
9
|
|
- multipart:
|
|
10
|
|
- location: /unis/app/deploy/temp
|
|
11
|
|
- #配置中心配置
|
|
12
|
|
- cloud:
|
|
13
|
|
- config:
|
|
14
|
|
- #使用discovery 时需要将eureka 写到该文件中,开发环境使用该方式,推荐使用。
|
|
15
|
|
- discovery:
|
|
|
15
|
+ devtools:
|
|
|
16
|
+ restart:
|
|
|
17
|
+ enabled: false
|
|
|
18
|
+ datasource:
|
|
|
19
|
+ type: com.alibaba.druid.pool.DruidDataSource
|
|
|
20
|
+ url: jdbc:mysql://101.36.160.140:10311/price?useUnicode=true&characterEncoding=UTF-8&useSSL=true&serverTimezone=GMT%2b8
|
|
|
21
|
+ username: root
|
|
|
22
|
+ password: admin@1234
|
|
|
23
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
24
|
+ druid:
|
|
|
25
|
+#db-type: mysql
|
|
|
26
|
+ initial-size: 5
|
|
|
27
|
+ max-active: 30
|
|
|
28
|
+ min-idle: 5
|
|
|
29
|
+ max-wait: 60000
|
|
|
30
|
+ pool-prepared-statements: true
|
|
|
31
|
+ max-pool-prepared-statement-per-connection-size: 30
|
|
|
32
|
+ validation-query: SELECT 1 FROM DUAL
|
|
|
33
|
+ test-on-borrow: false
|
|
|
34
|
+ test-on-return: false
|
|
|
35
|
+ test-while-idle: true
|
|
|
36
|
+ time-between-connect-error-millis: 60000
|
|
|
37
|
+ min-evictable-idle-time-millis: 300000
|
|
|
38
|
+ max-evictable-idle-time-millis: 3000000
|
|
|
39
|
+ filters: stat,wall
|
|
|
40
|
+ connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
|
|
41
|
+ use-global-data-source-stat: true
|
|
|
42
|
+ web-stat-filter:
|
|
|
43
|
+ url-pattern: /*
|
|
|
44
|
+ exclusions: /druid/*,*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico
|
|
16
|
45
|
enabled: true
|
|
17
|
|
- service-id: config
|
|
18
|
|
- name: feign
|
|
19
|
|
- profile: dev
|
|
20
|
|
- username: configuser
|
|
21
|
|
- password: configpasd
|
|
22
|
|
- retry:
|
|
23
|
|
- max-attempts: 5
|
|
24
|
|
- max-interval: 2000
|
|
|
46
|
+ session-stat-enable: true
|
|
|
47
|
+ session-stat-max-count: 10
|
|
|
48
|
+ stat-view-servlet:
|
|
|
49
|
+ url-pattern: /druid/*
|
|
|
50
|
+ reset-enable: true
|
|
|
51
|
+ login-username: druid
|
|
|
52
|
+ login-password: druid
|
|
25
|
53
|
#如果出现错误立刻停止服务。
|
|
26
|
54
|
#fail-fast: true
|
|
27
|
55
|
#服务注册配置
|
|
|
@@ -29,7 +57,7 @@ eureka:
|
|
29
|
57
|
client:
|
|
30
|
58
|
service-url:
|
|
31
|
59
|
# defaultZone: http://eureka-server:11000/eureka/
|
|
32
|
|
- defaultZone: http://172.16.0.73:11000/eureka/
|
|
|
60
|
+ defaultZone: http://172.16.0.4:11000/eureka/
|
|
33
|
61
|
#defaultZone: http://192.168.123.15:11000/eureka/
|
|
34
|
62
|
instance:
|
|
35
|
63
|
prefer-ip-address: true
|