From bd7371fb8b7459a5253fa8618ea1553dadd9e320 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期四, 19 三月 2020 09:21:17 +0800
Subject: [PATCH] 升级 v2.2

---
 ruoyi/pom.xml                            |   12 ++++++++++++
 ruoyi/src/main/resources/application.yml |   19 +++++++++++--------
 2 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/ruoyi/pom.xml b/ruoyi/pom.xml
index 851b926..bd5885c 100644
--- a/ruoyi/pom.xml
+++ b/ruoyi/pom.xml
@@ -45,6 +45,18 @@
 		<dependency>
 			<groupId>org.springframework.boot</groupId>
 			<artifactId>spring-boot-starter</artifactId>
+			<exclusions>
+				<exclusion>
+					<artifactId>spring-boot-starter-tomcat</artifactId>
+					<groupId>org.springframework.boot</groupId>
+				</exclusion>
+			</exclusions>
+		</dependency>
+
+		<!-- web 瀹瑰櫒浣跨敤 undertow 鎬ц兘鏇村己 -->
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-undertow</artifactId>
 		</dependency>
 
 		<!-- SpringBoot 娴嬭瘯 -->
diff --git a/ruoyi/src/main/resources/application.yml b/ruoyi/src/main/resources/application.yml
index 2a7fa6a..e0ba64f 100644
--- a/ruoyi/src/main/resources/application.yml
+++ b/ruoyi/src/main/resources/application.yml
@@ -20,14 +20,17 @@
   servlet:
     # 搴旂敤鐨勮闂矾寰�
     context-path: /
-  tomcat:
-    # tomcat鐨刄RI缂栫爜
-    uri-encoding: UTF-8
-    # tomcat鏈�澶х嚎绋嬫暟锛岄粯璁や负200
-    max-threads: 800
-    # Tomcat鍚姩鍒濆鍖栫殑绾跨▼鏁帮紝榛樿鍊�25
-    min-spare-threads: 30
-  version: 2.2.0
+  undertow:
+    # 璁剧疆IO绾跨▼鏁�, 瀹冧富瑕佹墽琛岄潪闃诲鐨勪换鍔�,瀹冧滑浼氳礋璐e涓繛鎺�, 榛樿璁剧疆姣忎釜CPU鏍稿績涓�涓嚎绋�
+    io-threads: 8
+    # 闃诲浠诲姟绾跨▼姹�, 褰撴墽琛岀被浼約ervlet璇锋眰闃诲鎿嶄綔, undertow浼氫粠杩欎釜绾跨▼姹犱腑鍙栧緱绾跨▼,瀹冪殑鍊艰缃彇鍐充簬绯荤粺鐨勮礋杞�
+    worker-threads: 256
+    # 浠ヤ笅鐨勯厤缃細褰卞搷buffer,杩欎簺buffer浼氱敤浜庢湇鍔″櫒杩炴帴鐨処O鎿嶄綔,鏈夌偣绫讳技netty鐨勬睜鍖栧唴瀛樼鐞�
+    # 姣忓潡buffer鐨勭┖闂村ぇ灏�,瓒婂皬鐨勭┖闂磋鍒╃敤瓒婂厖鍒�
+    buffer-size: 512
+    # 鏄惁鍒嗛厤鐨勭洿鎺ュ唴瀛�
+    direct-buffers: true
+
 # 鏃ュ織閰嶇疆
 logging:
   level:

--
Gitblit v1.9.3