我是靠谱客的博主 爱听歌发卡,这篇文章主要介绍【SpringBoot】Spring Boot Configuration Annotation Processor not found in classpath,现在分享给大家,希望可以做个参考。

问题描述:使用@ConfigurationProperties在idea中报如下错误:

解决方式:

maven方式:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-configuration-processor</artifactId>
    <optional>true</optional>
</dependency>

grade方式:

dependencies {
    optional "org.springframework.boot:spring-boot-configuration-processor"
}

compileJava.dependsOn(processResources)

参考官方链接:https://docs.spring.io/spring-boot/docs/1.5.3.RELEASE/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor

 

效果:

最后

以上就是爱听歌发卡最近收集整理的关于【SpringBoot】Spring Boot Configuration Annotation Processor not found in classpath的全部内容,更多相关【SpringBoot】Spring内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(124)

评论列表共有 0 条评论

立即
投稿
返回
顶部