Spring Boot 2.0 中的 EmbeddedServletContainerAutoConfiguration 和 ServerPropertiesAutoConfiguration

EmbeddedServletContainerAutoConfiguration and ServerPropertiesAutoConfiguration in Spring Boot 2.0

将我们的项目从 Spring Boot 1.5 更新到 2.0 时 类 EmbeddedServletContainerAutoConfigurationServerPropertiesAutoConfiguration 消失了,尽管我们迫切需要它们。当我在互联网上搜索那些 类 时,我找不到这个 类 的任何替代品。所以我的问题是:类 是否已通过 Spring Boot 2.0 删除?如果没有,他们被转移到了哪里?或者我该如何替换它们?

提前致谢。

EmbeddedServletContainerAutoConfiguration 已被 this commit during work on restructuring embedded web server packages 重命名为 ServletWebServerFactoryAutoConfiguration

ServerPropertiesAutoConfiguration 已被 this commit during work on the following issue 删除。现在使用创建这些属性对象 仅@EnableConfigurationProperties

注意:GitHub 可能需要一些时间才能显示特定的行号。