在 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>
版权声明:本文为sshduanzhijun原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。