server:
port: 8097
session-timeout: 30
tomcat.max-threads: 0
tomcat.uri-encoding: UTF-8
spring:
application:
name: feedback
# 数据库配置
datasource:
name: test
#url: jdbc:mysql://192.168.0.180:3306/dsdb
#url: jdbc:mysql://10.168.4.19:3306/dsdb
url: jdbc:mysql://10.168.31.223:3306/dsdb?useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&autoReconnect=true
username: root
password: ds2017
# 使用druid数据源
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
filters: stat
maxActive: 20
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
# rabbitMq 配置
rabbitmq:
host: 10.168.31.223
port: 5672
username: guest
password: guest
# publisher-confirms: true
# cache 配置
cache:
jcache:
config:
classpath:ehcache.xml
# redis 配置
redis:
#host: 192.168.0.129
#host: 10.168.4.19
host: 10.168.31.222
port: 6379
pool:
max-idle: 100
min-idle: 1
max-active: 1000
max-wait: -1
# jmx 配置
jmx:
enabled: false
# mybatis 配置
mybatis:
mapperLocations: classpath*:mapper/*.xml
typeAliasesPackage: com.daoshu.**.mapper
pagehelper:
helperDialect: mysql
reasonable: false
supportMethodsArguments: true
# fdfs 配置
fdfs:
soTimeout: 1500
connectTimeout: 600
thumbImage: #缩略图生成参数
width: 150
height: 150
trackerList: #TrackerList参数,支持多个
- 10.168.31.223:22122
# elasticsearch index和type配置
pvd:
base:
es-server-config:
clusterName: elasticsearch
clusterNodeList :
- http://10.168.31.223:9200
topicIndexName: knife
topicIndextype: topic
eureka:
instance:
prefer-ip-address: true
status-page-url: http://10.168.31.146:${server.port}/swagger-ui.html
client:
service-url:
defaultZone: http://daoshu:ds2017@10.168.31.222:10000/eureka
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 60000
ribbon:
ConnectTimeout: 3000
ReadTimeout: 50000
MaxAutoRetries: 1
MaxAutoRetriesNextServer: 2
OkToRetryOnAllOperations: false
转载于:https://www.cnblogs.com/bky-mc/p/9766540.html