From 0309edbfffe9d164f1d79e2388970b5fb2c459e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Fri, 31 Dec 2021 14:37:59 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=A2=9E=E5=8A=A0=20ruoyi-common-web=20?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=20=E5=AE=B9=E5=99=A8=E4=BD=BF=E7=94=A8=20und?= =?UTF-8?q?ertow=20=E9=AB=98=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application.yml | 16 ++++++++ pom.xml | 7 ++++ ruoyi-auth/pom.xml | 11 +++--- ruoyi-common/pom.xml | 1 + ruoyi-common/ruoyi-common-core/pom.xml | 6 --- ruoyi-common/ruoyi-common-swagger/pom.xml | 4 +- ruoyi-common/ruoyi-common-web/pom.xml | 38 +++++++++++++++++++ .../main/resources/META-INF/spring.factories | 1 + ruoyi-modules/ruoyi-file/pom.xml | 5 +++ ruoyi-modules/ruoyi-gen/pom.xml | 5 +++ ruoyi-modules/ruoyi-system/pom.xml | 5 +++ ruoyi-visual/ruoyi-monitor/pom.xml | 5 +-- 12 files changed, 87 insertions(+), 17 deletions(-) create mode 100644 ruoyi-common/ruoyi-common-web/pom.xml create mode 100644 ruoyi-common/ruoyi-common-web/src/main/resources/META-INF/spring.factories diff --git a/config/application.yml b/config/application.yml index 7e231194..623e5d6c 100644 --- a/config/application.yml +++ b/config/application.yml @@ -1,3 +1,19 @@ +server: + # undertow 配置 + undertow: + # HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的 + max-http-post-size: -1 + # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 + # 每块buffer的空间大小,越小的空间被利用越充分 + buffer-size: 512 + # 是否分配的直接内存 + direct-buffers: true + threads: + # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 + io: 8 + # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 + worker: 256 + spring: main: allow-bean-definition-overriding: true diff --git a/pom.xml b/pom.xml index 7bb36f4a..b9acdc74 100644 --- a/pom.xml +++ b/pom.xml @@ -273,6 +273,13 @@ ${ruoyi.version} + + + com.ruoyi + ruoyi-common-web + ${ruoyi.version} + + com.ruoyi diff --git a/ruoyi-auth/pom.xml b/ruoyi-auth/pom.xml index b70462c0..521f9b29 100644 --- a/ruoyi-auth/pom.xml +++ b/ruoyi-auth/pom.xml @@ -33,12 +33,6 @@ com.alibaba.cloud spring-cloud-starter-alibaba-sentinel - - - - org.springframework.boot - spring-boot-starter-web - @@ -51,6 +45,11 @@ com.ruoyi ruoyi-common-security + + + com.ruoyi + ruoyi-common-web + diff --git a/ruoyi-common/pom.xml b/ruoyi-common/pom.xml index 3743562d..4dcbb5c4 100644 --- a/ruoyi-common/pom.xml +++ b/ruoyi-common/pom.xml @@ -16,6 +16,7 @@ ruoyi-common-security ruoyi-common-datascope ruoyi-common-datasource + ruoyi-common-web ruoyi-common diff --git a/ruoyi-common/ruoyi-common-core/pom.xml b/ruoyi-common/ruoyi-common-core/pom.xml index 7ca913f6..924236f3 100644 --- a/ruoyi-common/ruoyi-common-core/pom.xml +++ b/ruoyi-common/ruoyi-common-core/pom.xml @@ -47,12 +47,6 @@ transmittable-thread-local - - - org.apache.commons - commons-pool2 - - com.github.pagehelper diff --git a/ruoyi-common/ruoyi-common-swagger/pom.xml b/ruoyi-common/ruoyi-common-swagger/pom.xml index e8eaa46e..feaf2d96 100644 --- a/ruoyi-common/ruoyi-common-swagger/pom.xml +++ b/ruoyi-common/ruoyi-common-swagger/pom.xml @@ -19,8 +19,8 @@ - org.springframework.boot - spring-boot-starter-web + com.ruoyi + ruoyi-common-web diff --git a/ruoyi-common/ruoyi-common-web/pom.xml b/ruoyi-common/ruoyi-common-web/pom.xml new file mode 100644 index 00000000..cd4f02ee --- /dev/null +++ b/ruoyi-common/ruoyi-common-web/pom.xml @@ -0,0 +1,38 @@ + + + + com.ruoyi + ruoyi-common + 0.1.0 + + 4.0.0 + + ruoyi-common-web + + + ruoyi-common-web web服务 + + + + + + + org.springframework.boot + spring-boot-starter-web + + + spring-boot-starter-tomcat + org.springframework.boot + + + + + + org.springframework.boot + spring-boot-starter-undertow + + + + diff --git a/ruoyi-common/ruoyi-common-web/src/main/resources/META-INF/spring.factories b/ruoyi-common/ruoyi-common-web/src/main/resources/META-INF/spring.factories new file mode 100644 index 00000000..485802b1 --- /dev/null +++ b/ruoyi-common/ruoyi-common-web/src/main/resources/META-INF/spring.factories @@ -0,0 +1 @@ +org.springframework.boot.autoconfigure.EnableAutoConfiguration= \ No newline at end of file diff --git a/ruoyi-modules/ruoyi-file/pom.xml b/ruoyi-modules/ruoyi-file/pom.xml index 45d22dee..6c84810d 100644 --- a/ruoyi-modules/ruoyi-file/pom.xml +++ b/ruoyi-modules/ruoyi-file/pom.xml @@ -65,6 +65,11 @@ com.ruoyi ruoyi-common-swagger + + + com.ruoyi + ruoyi-common-web + diff --git a/ruoyi-modules/ruoyi-gen/pom.xml b/ruoyi-modules/ruoyi-gen/pom.xml index 36f1b157..a9fb503a 100644 --- a/ruoyi-modules/ruoyi-gen/pom.xml +++ b/ruoyi-modules/ruoyi-gen/pom.xml @@ -78,6 +78,11 @@ ruoyi-common-swagger + + com.ruoyi + ruoyi-common-web + + com.ruoyi diff --git a/ruoyi-modules/ruoyi-system/pom.xml b/ruoyi-modules/ruoyi-system/pom.xml index be168f4a..1e2db1ff 100644 --- a/ruoyi-modules/ruoyi-system/pom.xml +++ b/ruoyi-modules/ruoyi-system/pom.xml @@ -78,6 +78,11 @@ ruoyi-common-swagger + + com.ruoyi + ruoyi-common-web + + diff --git a/ruoyi-visual/ruoyi-monitor/pom.xml b/ruoyi-visual/ruoyi-monitor/pom.xml index ede3839b..62b284ef 100644 --- a/ruoyi-visual/ruoyi-monitor/pom.xml +++ b/ruoyi-visual/ruoyi-monitor/pom.xml @@ -41,10 +41,9 @@ spring-cloud-starter-alibaba-sentinel - - org.springframework.boot - spring-boot-starter-web + com.ruoyi + ruoyi-common-web