我的配置如下:
server:
port: 8080
servlet:
context-path: /user
tomcat:
connection-timeout: 3s
threads:
max: 1
min-spare: 1
accept-count: 1
max-connections: 1但当我尝试使用Jmeter时,连接不会立即断开,除非等待50秒。
发布于 2021-09-28 10:09:34
试试这个:
server.servlet.session.timeout=60s在您的示例中,Tomcat将不允许设置任何小于60秒的超时时间:https://github.com/spring-projects/spring-boot/issues/7383
https://stackoverflow.com/questions/69359701
复制相似问题