springboot项目中使用@ConfigurationProperties注解出现Spring Boot Configuration Annotation Processor not configured提示信息

springboot项目中使用@ConfigurationProperties注解出现Spring Boot Configuration Annotation Processor not configured提示信息的解决办法

在pom.xml文件中加入相关依赖,然后重新加载项目即可

 

 

 

<!--处理@ConfigurationProperties有关的元数据-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>

posted @ 2021-12-20 19:15  AMHAO  阅读(381)  评论(0编辑  收藏  举报