From 214fd56f0d26ddaf65f320f5243132e7424a0334 Mon Sep 17 00:00:00 2001 From: smallchill Date: Sun, 31 Jan 2021 21:43:23 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=203.0.1.RELEASE=20=E6=9E=B6=E6=9E=84?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E9=80=82=E9=85=8D=20SpringCloud=202020.0.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/bootstrap.yml | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/blade-core-boot/src/main/resources/bootstrap.yml b/blade-core-boot/src/main/resources/bootstrap.yml index 3494206..904c514 100644 --- a/blade-core-boot/src/main/resources/bootstrap.yml +++ b/blade-core-boot/src/main/resources/bootstrap.yml @@ -1,32 +1,34 @@ #服务器配置 server: undertow: - # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 - io-threads: 4 - # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 - worker-threads: 20 # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 buffer-size: 1024 # 是否分配的直接内存 direct-buffers: true + threads: + # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 + io: 16 + # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 + worker: 400 + servlet: + encoding: + charset: UTF-8 + force: true #spring配置 spring: cache: ehcache: config: classpath:config/ehcache.xml - http: - encoding: - charset: UTF-8 - force: true servlet: multipart: max-file-size: 256MB max-request-size: 1024MB + web: + resources: + add-mappings: false mvc: throw-exception-if-no-handler-found: true - resources: - add-mappings: false datasource: driver-class-name: com.mysql.cj.jdbc.Driver druid: