Spring Boot 3升级:应用程序.yml文件中的错误

balp4ylt  于 2022-12-21  发布在  Spring
关注(0)|答案(1)|浏览(312)

我已经将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.
pw9qyyiw

pw9qyyiw1#

答案是:https://stackoverflow.com/a/72700025/345130
简而言之,在Sping Boot 2.3.0.RELEASE中删除了server.connection-timeout
特定于用户服务器的属性,如server.tomcat.connection-timeout

相关问题