1 Star 0 Fork 0

xiesangzi/prod-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dict-dev.yml 3.78 KB
一键复制 编辑 原始数据 按行查看 历史
logging:
level:
# tk.mybatis: DEBUG
com.github.wxiaoqi.security.dict: DEBUG
spring:
application:
name: ace-dict
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
default-property-inclusion: non_null
datasource:
name: test
url: jdbc:mysql://${MYSQL_HOST:192.168.1.230}:${MYSQL_PORT:3306}/ag_dict?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8&useSSL=false
username: kfb
password: B005F21FADA7B738F904C92085517810
# 使用druid数据源
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
druid:
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
redis:
database: 1
host: ${REDIS_HOST:192.168.1.230}
port: ${REDIS_PORT:6379}
pool:
max-active: 20
password: gzulmu
rabbitmq:
host: ${RABBIT_MQ_HOST:192.168.1.196}
port: ${RABBIT_MQ_PORT:5672}
username: admin
password: admin
zipkin:
enabled: true
sleuth:
sampler:
percentage: 1
server:
port: 9999
eureka:
instance:
statusPageUrlPath: /info
healthCheckUrlPath: /health
# docker 部署开启,记得将IP修改为部署所在服务器的外网IP
#prefer-ip-address: true
#ip-address: 192.168.1.230
client:
serviceUrl:
#defaultZone: http://192.168.1.230:8761/eureka/ # docker 部署开启,记得将IP修改为部署所在服务器的外网IP
defaultZone: http://${EUREKA_HOST:localhost}:${EUREKA_PORT:8761}/eureka/
# 必须配置
feign:
httpclient:
enabled: false
okhttp:
enabled: true
compression:
request:
enabled: true
mime-types: text/xml,application/xml,application/json
min-request-size: 2048
response:
enabled: true
ribbon:
eureka:
enabled: true
ReadTimeout: 120000
ConnectTimeout: 120000
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 1
OkToRetryOnAllOperations: false
hystrix:
threadpool:
default:
coreSize: 1000 #并发执行的最大线程数,默认10
maxQueueSize: 1000 #BlockingQueue的最大队列数
queueSizeRejectionThreshold: 500 #即使maxQueueSize没有达到,达到queueSizeRejectionThreshold该值后,请求也会被拒绝
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 110000
# 配置swagger
swagger:
enabled: true
base-package: com.github.wxiaoqi.security.dict
title: ace-dict
version: 1.0.0.SNAPSHOT
description: 数据字典
contact:
name: 邪桑子
auth:
serviceId: ace-auth
user:
token-header: Authorization
limit-expire: 1440 # 一天过期
client:
id: ace-dict
secret: 123456
token-header: client-token
#redis-cache 相关
redis:
pool:
maxActive: 300
maxIdle: 100
maxWait: 1000
host: ${REDIS_HOST:192.168.1.230}
port: ${REDIS_PORT:6379}
password: gzulmu
timeout: 2000
# 服务或应用名
sysName: ace-dict
enable: true
database: 0
# 跨服务数据合并
merge:
enabled: true
guavaCacheNumMaxSize: 1000
guavaCacheRefreshWriteTime: 10 # min
guavaCacheRefreshThreadPoolSize: 10
aop:
enabled: true
mapper:
mappers: com.github.wxiaoqi.security.common.mapper.CommonMapper
mybatis:
mapper-locations: classpath*:mapper/*.xml
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
XML
1
https://gitee.com/xsz_88/prod-config.git
[email protected]:xsz_88/prod-config.git
xsz_88
prod-config
prod-config
master

搜索帮助