1,使用注解@ConfigurationProperties报错:Spring Boot Configuration Annotation Processor not found in classpath
解决方式:在pom文件添加:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
2,添加pom之后在添加@ConfigurationProperties注解的类上添加@Component注解