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