赞
踩
我是在 在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”
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。