开发者社区 问答 正文

请问Spring Boot内嵌的tomcat8的最大线程数、最大连接数如何配置?

spring boot 版本

<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.3.RELEASE</version>

该版本默认自带的tomcat的版本为:8.0.32
请问,如何在spring boot 项目里面配置这个tomct的最大线程数、最大连接数

展开
收起
落地花开啦 2016-06-03 16:57:42 23201 分享 版权
2 条回答
写回答
取消 提交回答
  • 技术源于生活

    引入了spring的包之后,找到tomcat的jar包,然后在里面找factory文件,里面有各种配置。

    2019-07-17 19:26:53
    赞同 展开评论
  • 喜欢技术,喜欢努力的人

    application.properties:
    server.tomcat.max-threads=0 # Maximum amount of worker threads.

    2019-07-17 19:26:52
    赞同 展开评论