我已经将spring Boot 版本升级到3,并且属性文件中的字段connection-timeout出现以下错误,我可以使用什么替代方法?
Property source 'Config resource 'class path resource [application.yml]' via location 'optional:classpath:/'':
Key: server.connection-timeout
Line: 16
Reason: Each server behaves differently.
Please refer to the release notes or reference guide for potential alternatives.
1条答案
按热度按时间pw9qyyiw1#
答案是:https://stackoverflow.com/a/72700025/345130
简而言之,在Sping Boot 2.3.0.RELEASE中删除了
server.connection-timeout
。特定于用户服务器的属性,如
server.tomcat.connection-timeout
。