当前位置:   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】
推荐阅读
相关标签
  

闽ICP备14008679号