You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.9 KiB
61 lines
1.9 KiB
# eureka注册:禁用
|
|
eureka.client.register-with-eureka = false
|
|
euraka.client.fetch-registry = false
|
|
|
|
# File Upload
|
|
spring.servlet.multipart.max-file-size=50MB
|
|
spring.servlet.multipart.max-request-size=100MB
|
|
|
|
# Redis配置信息(spring有默认配置,不配置默认连接127.0.0.1)
|
|
# Redis数据库索引(默认为0)
|
|
spring.redis.database=0
|
|
spring.redis.host=127.0.0.1
|
|
spring.redis.port=6379
|
|
spring.redis.password=
|
|
spring.redis.timeout=1000ms
|
|
spring.redis.jedis.pool.max-active=200
|
|
spring.redis.jedis.pool.max-wait=-1ms
|
|
spring.redis.jedis.pool.max-idle=10
|
|
spring.redis.jedis.pool.min-idle=0
|
|
|
|
# RabbitMQ配置信息
|
|
#spring.rabbitmq.host=api.ccsens.com
|
|
spring.rabbitmq.host=127.0.0.1
|
|
spring.rabbitmq.port=5672
|
|
spring.rabbitmq.username=admin
|
|
spring.rabbitmq.password=111111
|
|
# spring.rabbitmq.listener.simple.acknowledge-mode=manual
|
|
|
|
# MongoDB配置信息
|
|
spring.data.mongodb.uri=mongodb://wei:111111@49.233.89.188:27017/test
|
|
# 最大连接数,每一台服务器
|
|
spring.data.mongodb.option.max-connection-per-host=100
|
|
# 可阻塞线程队列容量
|
|
spring.data.mongodb.option.threads-allowed-to-block-for-connection-multiplier=10
|
|
# 每一台服务器的最小连接数
|
|
spring.data.mongodb.option.min-connection-per-host=1
|
|
|
|
#连接超时时间 1分钟
|
|
spring.data.mongodb.option.connect-timeout=60000
|
|
#等待时间 120000 2 * 60 * 1000
|
|
spring.data.mongodb.option.max-wait-time=120000
|
|
#Socket超时时间
|
|
spring.data.mongodb.option.socket-timeout=10000
|
|
#保持连接
|
|
spring.data.mongodb.option.socket-keep-alive=true
|
|
|
|
## 连接空闲时间8小时,否则连接太过频繁
|
|
spring.data.mongodb.option.max-connection-idle-time=28800000
|
|
spring.data.mongodb.option.max-connection-life-time=0
|
|
#心跳
|
|
spring.data.mongodb.option.heartbeat-socket-timeout=10000
|
|
spring.data.mongodb.option.heartbeat-connect-timeout=15000
|
|
spring.data.mongodb.option.min-heartbeat-frequency=5000
|
|
spring.data.mongodb.option.heartbeat-frequency=100000
|
|
|
|
# Settings
|
|
setting.snowflake.workerId=1
|
|
setting.snowflake.datacenterId=1
|
|
|
|
|
|
|
|
|