|
@@ -1,5 +1,5 @@
|
|
|
server:
|
|
|
- port: 5860
|
|
|
+ port: 7010
|
|
|
max-http-header-size: 10MB
|
|
|
|
|
|
hystrix:
|
|
@@ -20,12 +20,6 @@ hystrix:
|
|
|
thread:
|
|
|
timeoutInMilliseconds: 20000
|
|
|
|
|
|
-ribbon:
|
|
|
- ReadTimeout: 20000
|
|
|
- ConnectTimeout: 20000
|
|
|
- MaxAutoRetries: 0
|
|
|
- MaxAutoRetriesNextServer: 1
|
|
|
-
|
|
|
feign:
|
|
|
hystrix:
|
|
|
enabled: true
|
|
@@ -40,70 +34,34 @@ feign:
|
|
|
max-connections: 1000 # 默认值
|
|
|
max-connections-per-route: 250 # 默认值
|
|
|
|
|
|
-management:
|
|
|
- endpoints:
|
|
|
- web:
|
|
|
- exposure:
|
|
|
- include: bus-refresh,health,info,hystrix.stream
|
|
|
- cors:
|
|
|
- allowed-origins: "*"
|
|
|
- allowed-methods: "*"
|
|
|
- endpoint:
|
|
|
- health:
|
|
|
- show-details: always
|
|
|
-
|
|
|
# 驱动配置信息
|
|
|
spring:
|
|
|
datasource:
|
|
|
- druid:
|
|
|
- driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
- platform: mysql
|
|
|
- url: jdbc:mysql://192.168.2.236:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
|
|
|
- username: root
|
|
|
- password: lantone
|
|
|
- # 连接池的配置信息
|
|
|
- # 初始化大小,最小,最大
|
|
|
- initialSize: 5
|
|
|
- minIdle: 5
|
|
|
- maxActive: 20
|
|
|
- # 配置获取连接等待超时的时间
|
|
|
- maxWait: 60000
|
|
|
- # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
- timeBetweenEvictionRunsMillis: 60000
|
|
|
- # 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
- minEvictableIdleTimeMillis: 300000
|
|
|
- validationQuery: SELECT 1 FROM DUAL
|
|
|
- testWhileIdle: true
|
|
|
- testOnBorrow: false
|
|
|
- testOnReturn: false
|
|
|
- # 打开PSCache,并且指定每个连接上PSCache的大小
|
|
|
- poolPreparedStatements: true
|
|
|
- maxPoolPreparedStatementPerConnectionSize: 20
|
|
|
- # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
|
|
- filters.commons-log.connection-logger-name: wall,log4j
|
|
|
- filter:
|
|
|
- stat:
|
|
|
- enabled: true
|
|
|
- mergeSql: true
|
|
|
- log-slow-sql: true
|
|
|
- slow-sql-millis: 2000
|
|
|
- #监控配置
|
|
|
- web-stat-filter:
|
|
|
- enabled: true
|
|
|
- url-pattern: /*
|
|
|
- exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
|
|
|
-
|
|
|
- # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
|
|
|
- stat-view-servlet:
|
|
|
- enabled: true
|
|
|
- url-pattern: /druid/*
|
|
|
- reset-enable: false
|
|
|
- login-username: root
|
|
|
- login-password: root
|
|
|
-
|
|
|
- jackson:
|
|
|
- date-format: yyyy-MM-dd HH:mm:ss
|
|
|
- time-zone: GMT+8
|
|
|
+ dynamic:
|
|
|
+ primary: neo4j
|
|
|
+ # 数据库配置
|
|
|
+ datasource:
|
|
|
+ neo4j:
|
|
|
+ driver-class-name: org.neo4j.jdbc.Driver
|
|
|
+ url: jdbc:neo4j:http://192.168.2.234:7472
|
|
|
+ username: neo4j
|
|
|
+ password: root
|
|
|
+ #定义初始连接数
|
|
|
+ initialSize: 0
|
|
|
+ #定义最大连接数
|
|
|
+ maxActive: 20
|
|
|
+ #定义最大空闲
|
|
|
+ maxIdle: 20
|
|
|
+ #定义最小空闲
|
|
|
+ minIdle: 1
|
|
|
+ #定义最长等待时间
|
|
|
+ maxWait: 60000
|
|
|
+ mysql:
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
+ platform: mysql
|
|
|
+ url: jdbc:mysql://192.168.2.236:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
|
|
|
+ username: root
|
|
|
+ password: lantone
|
|
|
|
|
|
servlet:
|
|
|
multipart:
|