org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata
兼容cloud 问题导致. 原因
spring-boot-starter-parent 2.4.0版本以后去掉了ConfigurationBeanFactoryMetadata类
解决
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.7</version>
<relativePath/>
</parent>
<!-- 涉及 cloud 兼容问题引入 cloud 以来 2。4之后需要在2021 支持-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2020以上</version>
<type>pom</type>
<scope>import</scope>
</dependency>
不愿意升版本就将 spring boot 版本到2.4 以下