mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-11-06 02:29:30 +08:00
🎉 3.0.1.RELEASE 架构升级适配 SpringCloud 2020.0.1
This commit is contained in:
parent
c0cd574937
commit
214fd56f0d
@ -1,32 +1,34 @@
|
|||||||
#服务器配置
|
#服务器配置
|
||||||
server:
|
server:
|
||||||
undertow:
|
undertow:
|
||||||
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
|
|
||||||
io-threads: 4
|
|
||||||
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
|
|
||||||
worker-threads: 20
|
|
||||||
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
|
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
|
||||||
buffer-size: 1024
|
buffer-size: 1024
|
||||||
# 是否分配的直接内存
|
# 是否分配的直接内存
|
||||||
direct-buffers: true
|
direct-buffers: true
|
||||||
|
threads:
|
||||||
|
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
|
||||||
|
io: 16
|
||||||
|
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
|
||||||
|
worker: 400
|
||||||
|
servlet:
|
||||||
|
encoding:
|
||||||
|
charset: UTF-8
|
||||||
|
force: true
|
||||||
|
|
||||||
#spring配置
|
#spring配置
|
||||||
spring:
|
spring:
|
||||||
cache:
|
cache:
|
||||||
ehcache:
|
ehcache:
|
||||||
config: classpath:config/ehcache.xml
|
config: classpath:config/ehcache.xml
|
||||||
http:
|
|
||||||
encoding:
|
|
||||||
charset: UTF-8
|
|
||||||
force: true
|
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 256MB
|
max-file-size: 256MB
|
||||||
max-request-size: 1024MB
|
max-request-size: 1024MB
|
||||||
mvc:
|
web:
|
||||||
throw-exception-if-no-handler-found: true
|
|
||||||
resources:
|
resources:
|
||||||
add-mappings: false
|
add-mappings: false
|
||||||
|
mvc:
|
||||||
|
throw-exception-if-no-handler-found: true
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
druid:
|
druid:
|
||||||
|
Loading…
Reference in New Issue
Block a user