mirror of
https://github.com/chillzhuang/SpringBlade.git
synced 2024-11-15 23:19:29 +08:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
|
server:
|
||
|
port: 7005
|
||
|
undertow:
|
||
|
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
|
||
|
io-threads: 4
|
||
|
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
|
||
|
worker-threads: 20
|
||
|
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
|
||
|
buffer-size: 1024
|
||
|
# 是否分配的直接内存
|
||
|
direct-buffers: true
|
||
|
|
||
|
spring:
|
||
|
# 配置中心
|
||
|
cloud:
|
||
|
#config:
|
||
|
# server:
|
||
|
# native:
|
||
|
# search-locations: classpath:/config/
|
||
|
config:
|
||
|
server:
|
||
|
git:
|
||
|
uri: https://gitee.com/smallc/bladex-config
|
||
|
search-paths: respo
|
||
|
default-label: master
|
||
|
#username: username
|
||
|
#password: password
|
||
|
loadbalancer:
|
||
|
retry:
|
||
|
enabled: true
|
||
|
devtools:
|
||
|
restart:
|
||
|
log-condition-evaluation-delta: false
|
||
|
|
||
|
management:
|
||
|
endpoints:
|
||
|
web:
|
||
|
exposure:
|
||
|
include: "*"
|
||
|
endpoint:
|
||
|
health:
|
||
|
show-details: always
|