42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
server:
|
||
port: 8086
|
||
server:
|
||
undertow:
|
||
io-threads: 2
|
||
worker-threads: 200
|
||
buffer-size: 16384
|
||
direct-buffers: true
|
||
max-connections: 2000
|
||
queue-size: 100
|
||
no-request-timeout: 60000
|
||
connection-timeout: 60000
|
||
max-http-header-size: 8192
|
||
max-http-post-size: 200MB
|
||
management: #开启SpringBoot Admin的监控
|
||
endpoints:
|
||
web:
|
||
exposure:
|
||
include: "*" # 暴露xxx端点,如需暴露多个,用,分隔;如需暴露所有端点,用'*'
|
||
enabled-by-default: false
|
||
endpoint:
|
||
health:
|
||
show-details: ALWAYS # 是否展示健康检查详情
|
||
info: # info信息会显示到SpringBootAdmin的server端,这里取的是pom文件中的数据
|
||
version: @project.version@
|
||
groupId: @project.groupId@
|
||
artifactId: @project.artifactId@
|
||
mybatis-plus:
|
||
mapper-locations: classpath:/mapper/**/*.xml
|
||
global-config:
|
||
field-strategy: 1
|
||
db-config:
|
||
id-type: auto
|
||
configuration:
|
||
auto-mapping-behavior: partial
|
||
map-underscore-to-camel-case: false
|
||
feign:
|
||
okhttp:
|
||
enabled: true
|
||
ribbon:
|
||
ConnectTimeout: 60000 #服务请求连接超时时间(毫秒)
|
||
ReadTimeout: 60000 #服务请求处理超时时间(毫秒) |