当前位置:   article > 正文

gradle中springboot configuration processor not configured_gradle spring-boot-configuration-processor

gradle spring-boot-configuration-processor

我是在 在build.gradle文件中,dependencies {} 中,添加如下语句:

annotationProcessor “org.springframework.boot:spring-boot-configuration-processor”

解决的。

官方文档解决方案是这样写的

With Gradle 4.5 and earlier, the dependency should be declared in the compileOnly configuration, as shown in the following example:

dependencies {
compileOnly “org.springframework.boot:spring-boot-configuration-processor”
}

With Gradle 4.6 and later, the dependency should be declared in the annotationProcessor configuration, as shown in the following example:

dependencies {
annotationProcessor “org.springframework.boot:spring-boot-configuration-processor”
}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/307515
推荐阅读
相关标签
  

闽ICP备14008679号