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 单机配置(单机与集群只能开启一个另一个需要注释掉) redis: # 地址 host: 10.1.26.45 # 端口,默认为6379 port: 6379 # 数据库索引 database: @spring.redis.index@ # 密码(如没有密码请注释掉) password: @spring.redis.password@ # 连接超时时间 timeout: 30s # 是否开启ssl ssl: false # redis: # # 烟台使用cluster模式下使用cluster:配置段 # # database: @spring.redis.index@ # # host: @spring.redis.host@ # # port: @spring.redis.port@ # # password: @spring.redis.password@ # # timeout: 30s # # database: @spring.redis.index@ # password: @spring.redis.password@ # timeout: 30s # cluster: # nodes: @spring.redis.cluster.nodes@ # max-redirects: @spring.redis.cluster.max-redirects@ 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@