Spring - server.connection-timeout not working

前端 未结 3 944
猫巷女王i
猫巷女王i 2021-02-12 22:22

In my application.properties file I have...

server.port=8086
server.connection-timeout=15000

I know that the file is being loaded

3条回答
  •  独厮守ぢ
    2021-02-12 23:00

    From the official docs:

    server.connection-timeout= # Time that connectors wait for another HTTP request before closing the connection. When not set, the connector's container-specific default is used. Use a value of -1 to indicate no (that is, an infinite) timeout.

    Another ref, also mentions the same. It should work for you.

提交回复
热议问题