更新 如何修改为Tomcat相关注释配置与说明
This commit is contained in:
parent
69f30760f8
commit
5a62019cdd
|
@ -5,6 +5,10 @@
|
||||||
* 禁止 父方法使用 @Transactional 创建事务 子方法使用 @DataSource 切换数据源
|
* 禁止 父方法使用 @Transactional 创建事务 子方法使用 @DataSource 切换数据源
|
||||||
* 正确用法: 子方法单独创建事务 或 父方法使用 @Transactional(propagation = Propagation.REQUIRES_NEW) 为所有子方法创建新事务
|
* 正确用法: 子方法单独创建事务 或 父方法使用 @Transactional(propagation = Propagation.REQUIRES_NEW) 为所有子方法创建新事务
|
||||||
|
|
||||||
|
关于如何使用Tomcat
|
||||||
|
* 查看ruoyi-framework模块的pom.xml文件,根据注释更改依赖
|
||||||
|
* 查看ruoyi-admin模块中的application.yml文件,根据注释更改配置
|
||||||
|
|
||||||
## 修改RuoYi功能
|
## 修改RuoYi功能
|
||||||
|
|
||||||
* ORM框架 使用 Mybatis-Plus 简化CRUD
|
* ORM框架 使用 Mybatis-Plus 简化CRUD
|
||||||
|
|
|
@ -22,6 +22,7 @@ server:
|
||||||
servlet:
|
servlet:
|
||||||
# 应用的访问路径
|
# 应用的访问路径
|
||||||
context-path: /
|
context-path: /
|
||||||
|
# undertow 配置
|
||||||
undertow:
|
undertow:
|
||||||
# HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
|
# HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
|
||||||
max-http-post-size: -1
|
max-http-post-size: -1
|
||||||
|
@ -34,6 +35,14 @@ server:
|
||||||
worker-threads: 256
|
worker-threads: 256
|
||||||
# 是否分配的直接内存
|
# 是否分配的直接内存
|
||||||
direct-buffers: true
|
direct-buffers: true
|
||||||
|
# # tomcat 配置
|
||||||
|
# tomcat:
|
||||||
|
# # tomcat的URI编码
|
||||||
|
# uri-encoding: UTF-8
|
||||||
|
# # tomcat最大线程数,默认为200
|
||||||
|
# max-threads: 500
|
||||||
|
# # Tomcat启动初始化的线程数,默认值25
|
||||||
|
# min-spare-threads: 30
|
||||||
|
|
||||||
# 日志配置
|
# 日志配置
|
||||||
logging:
|
logging:
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
|
<!-- BEGIN 如果想使用 Tomcat 注释掉以下代码 -->
|
||||||
<!-- SpringBoot Web容器 -->
|
<!-- SpringBoot Web容器 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
@ -28,12 +29,19 @@
|
||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- web 容器使用 undertow 性能更强 -->
|
<!-- web 容器使用 undertow 性能更强 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-undertow</artifactId>
|
<artifactId>spring-boot-starter-undertow</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- END -->
|
||||||
|
|
||||||
|
<!-- BEGIN 如果想使用 Tomcat 解除以下代码注释 -->
|
||||||
|
<!-- <dependency>-->
|
||||||
|
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||||
|
<!-- <artifactId>spring-boot-starter-web</artifactId>-->
|
||||||
|
<!-- </dependency>-->
|
||||||
|
<!-- END -->
|
||||||
|
|
||||||
<!-- SpringBoot 拦截器 -->
|
<!-- SpringBoot 拦截器 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
Loading…
Reference in New Issue