草庐IT

java - Spring Boot 2.0 中的 EmbeddedServletContainerAutoConfiguration 和 ServerPropertiesAutoConfiguration

coder 2024-04-05 原文

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

提前致谢。

最佳答案

EmbeddedServletContainerAutoConfiguration 已被 this commit 重命名为 ServletWebServerFactoryAutoConfigurationrestructuring embedded web server packages 工作期间.

ServerPropertiesAutoConfiguration 已被 this commit 删除在 the following issue 工作期间.现在使用创建这些属性对象 @EnableConfigurationProperties仅。

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

关于java - Spring Boot 2.0 中的 EmbeddedServletContainerAutoConfiguration 和 ServerPropertiesAutoConfiguration,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52393841/

有关java - Spring Boot 2.0 中的 EmbeddedServletContainerAutoConfiguration 和 ServerPropertiesAutoConfiguration的更多相关文章

随机推荐