tomcat springboot application.properties corethreads不工作

7jmck4yq  于 2023-10-19  发布在  Spring
关注(0)|答案(1)|浏览(131)

我在www.example.com中配置了tomcat maxthreads和corethreadsapplication.properties,我在控制台日志中打印了executor.getMaxPoolSize()和executor.getCorePoolSize(),但每个server.tomcat.xxxx属性都没有,除了server.port。我该如何解决?

server.port=8081
server.tomcat.threads.max=200
server.tomcat.threads.core=20
server.tomcat.connection-timeout=80000
m1m5dgzv

m1m5dgzv1#

executor.getMaxPoolSize()和executor.getCorePoolSize()是错误的方式。application.properties是工作

相关问题