配置有@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>