假设您使用的是嵌入式
Tomcat,
Spring Boot使用该
server.tomcat.max-threads属性来控制客户端请求线程池的大小。它的默认值为零,从而使Tomcat使用其默认值200。
要自定义此线程池的大小,应
server.tomcat.max-threads在application.properties或application.yml文件中为属性指定一个非零值。

假设您使用的是嵌入式
Tomcat,
Spring Boot使用该
server.tomcat.max-threads属性来控制客户端请求线程池的大小。它的默认值为零,从而使Tomcat使用其默认值200。
要自定义此线程池的大小,应
server.tomcat.max-threads在application.properties或application.yml文件中为属性指定一个非零值。