|
|
|
server:
|
|
|
|
port: @server.port@
|
|
|
|
version: @version@
|
|
|
|
servlet:
|
|
|
|
context-path: /resi/home
|
|
|
|
|
|
|
|
spring:
|
|
|
|
main:
|
|
|
|
allow-bean-definition-overriding: true
|
|
|
|
application:
|
|
|
|
name: resi-home-server
|
|
|
|
#环境 dev|test|prod
|
|
|
|
profiles:
|
|
|
|
active: @spring.profiles.active@
|
|
|
|
messages:
|
|
|
|
encoding: UTF-8
|
|
|
|
basename: i18n/messages_common
|
|
|
|
jackson:
|
|
|
|
time-zone: GMT+8
|
|
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
|
|
redis:
|
|
|
|
database: @spring.redis.index@
|
|
|
|
host: @spring.redis.host@
|
|
|
|
port: @spring.redis.port@
|
|
|
|
password: @spring.redis.password@
|
|
|
|
timeout: 30s
|
|
|
|
cloud:
|
|
|
|
nacos:
|
|
|
|
discovery:
|
|
|
|
server-addr: @nacos.server-addr@
|
|
|
|
#nacos的命名空间ID,默认是public
|
|
|
|
namespace: @nacos.discovery.namespace@
|
|
|
|
#不把自己注册到注册中心的地址
|
|
|
|
register-enabled: @nacos.register-enabled@
|
|
|
|
ip: @nacos.ip@
|
|
|
|
serviceListChangedListening:
|
|
|
|
enable: @nacos.service-list-changed-listening.enable@
|
|
|
|
config:
|
|
|
|
enabled: @nacos.config-enabled@
|
|
|
|
server-addr: @nacos.server-addr@
|
|
|
|
namespace: @nacos.config.namespace@
|
|
|
|
group: @nacos.config.group@
|
|
|
|
file-extension: yaml
|
|
|
|
management:
|
|
|
|
endpoints:
|
|
|
|
web:
|
|
|
|
exposure:
|
|
|
|
include: "*"
|
|
|
|
endpoint:
|
|
|
|
health:
|
|
|
|
show-details: ALWAYS
|
|
|
|
|
|
|
|
|
|
|
|
feign:
|
|
|
|
hystrix:
|
|
|
|
enabled: true
|
|
|
|
client:
|
|
|
|
config:
|
|
|
|
default:
|
|
|
|
loggerLevel: BASIC
|
|
|
|
okhttp:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
hystrix:
|
|
|
|
command:
|
|
|
|
default:
|
|
|
|
execution:
|
|
|
|
isolation:
|
|
|
|
thread:
|
|
|
|
timeoutInMilliseconds: 60000 #缺省为1000
|
|
|
|
threadpool:
|
|
|
|
default:
|
|
|
|
# hystric最大线程个数,默认10,改为20
|
|
|
|
maximumSize: 20
|
|
|
|
|
|
|
|
ribbon:
|
|
|
|
ReadTimeout: 300000
|
|
|
|
ConnectTimeout: 300000
|
|
|
|
|
|
|
|
dingTalk:
|
|
|
|
robot:
|
|
|
|
webHook: @dingTalk.robot.webHook@
|
|
|
|
secret: @dingTalk.robot.secret@
|
|
|
|
|
|
|
|
# 停机选项
|
|
|
|
shutdown:
|
|
|
|
graceful:
|
|
|
|
enable: true #是否开启优雅停机
|
|
|
|
waitTimeSecs: 30 # 优雅停机等待时间,超过30秒,发出告警
|
|
|
|
|
|
|
|
thread:
|
|
|
|
# 线程池配置
|
|
|
|
threadPool:
|
|
|
|
enableCustomize: @thread.threadPool.enable-customize@
|
|
|
|
corePoolSize: @thread.threadPool.core-pool-size@
|
|
|
|
maxPoolSize: @thread.threadPool.max-pool-size@
|
|
|
|
queueCapacity: @thread.threadPool.queue-capacity@
|
|
|
|
keepAliveSeconds: @thread.threadPool.keep-alive-seconds@
|
|
|
|
threadNamePrefix: @thread.threadPool.thread-name-prefix@
|
|
|
|
rejectedExecutionHandler: @thread.threadPool.rejected-execution-handler@
|