From 5a62019cddf01997035a0592192e2e0401937845 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期二, 08 十二月 2020 16:21:30 +0800
Subject: [PATCH] 更新 如何修改为Tomcat相关注释配置与说明

---
 ruoyi-framework/pom.xml                        |   10 +++++++++-
 ruoyi-admin/src/main/resources/application.yml |    9 +++++++++
 README.md                                      |    4 ++++
 3 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/README.md b/README.md
index 484d6d0..1ba6549 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,10 @@
 * 绂佹 鐖舵柟娉曚娇鐢� @Transactional 鍒涘缓浜嬪姟 瀛愭柟娉曚娇鐢� @DataSource 鍒囨崲鏁版嵁婧�
 * 姝g‘鐢ㄦ硶: 瀛愭柟娉曞崟鐙垱寤轰簨鍔� 鎴� 鐖舵柟娉曚娇鐢� @Transactional(propagation = Propagation.REQUIRES_NEW) 涓烘墍鏈夊瓙鏂规硶鍒涘缓鏂颁簨鍔�
 
+鍏充簬濡備綍浣跨敤Tomcat
+* 鏌ョ湅ruoyi-framework妯″潡鐨刾om.xml鏂囦欢,鏍规嵁娉ㄩ噴鏇存敼渚濊禆
+* 鏌ョ湅ruoyi-admin妯″潡涓殑application.yml鏂囦欢,鏍规嵁娉ㄩ噴鏇存敼閰嶇疆
+
 ## 淇敼RuoYi鍔熻兘
 
 * ORM妗嗘灦 浣跨敤 Mybatis-Plus 绠�鍖朇RUD
diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml
index 5a78666..31b95c6 100644
--- a/ruoyi-admin/src/main/resources/application.yml
+++ b/ruoyi-admin/src/main/resources/application.yml
@@ -22,6 +22,7 @@
   servlet:
     # 搴旂敤鐨勮闂矾寰�
     context-path: /
+  # undertow 閰嶇疆
   undertow:
     # HTTP post鍐呭鐨勬渶澶уぇ灏忋�傚綋鍊间负-1鏃讹紝榛樿鍊间负澶у皬鏄棤闄愮殑
     max-http-post-size: -1
@@ -34,6 +35,14 @@
     worker-threads: 256
     # 鏄惁鍒嗛厤鐨勭洿鎺ュ唴瀛�
     direct-buffers: true
+#  # tomcat 閰嶇疆
+#  tomcat:
+#    # tomcat鐨刄RI缂栫爜
+#    uri-encoding: UTF-8
+#    # tomcat鏈�澶х嚎绋嬫暟锛岄粯璁や负200
+#    max-threads: 500
+#    # Tomcat鍚姩鍒濆鍖栫殑绾跨▼鏁帮紝榛樿鍊�25
+#    min-spare-threads: 30
 
 # 鏃ュ織閰嶇疆
 logging:
diff --git a/ruoyi-framework/pom.xml b/ruoyi-framework/pom.xml
index 61af7c0..9be2f34 100644
--- a/ruoyi-framework/pom.xml
+++ b/ruoyi-framework/pom.xml
@@ -17,6 +17,7 @@
 
     <dependencies>
 
+        <!-- BEGIN 濡傛灉鎯充娇鐢� Tomcat 娉ㄩ噴鎺変互涓嬩唬鐮� -->
         <!-- SpringBoot Web瀹瑰櫒 -->
          <dependency>
             <groupId>org.springframework.boot</groupId>
@@ -28,12 +29,19 @@
                  </exclusion>
              </exclusions>
         </dependency>
-
         <!-- web 瀹瑰櫒浣跨敤 undertow 鎬ц兘鏇村己 -->
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-undertow</artifactId>
         </dependency>
+        <!-- END -->
+
+        <!-- BEGIN 濡傛灉鎯充娇鐢� Tomcat 瑙i櫎浠ヤ笅浠g爜娉ㄩ噴 -->
+<!--        <dependency>-->
+<!--            <groupId>org.springframework.boot</groupId>-->
+<!--            <artifactId>spring-boot-starter-web</artifactId>-->
+<!--        </dependency>-->
+        <!-- END -->
 
         <!-- SpringBoot 鎷︽埅鍣� -->
         <dependency>

--
Gitblit v1.9.3