在Spring Boot
程序中添加@Configuration
和@ConfigurationProperties(value='...')
注释时,编辑器提示
spring boot configuration annotation processor not configured
解决办法是在pom.xml
文件中添加spring-boot-configuration-processor
配置处理器依赖即可
<dependencies>
......
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>