@ConfigurationProperties 提示错误
在springCloud环境下来注入配置时,可以使用@Value和@ConfigurationProperties.
但使用@ConfigurationProperties需要在依赖中额外导入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<!--不传递依赖-->
<optional>true</optional>
</dependency>
即可