美文网首页
spring boot configuration annota

spring boot configuration annota

作者: PerfectStranger | 来源:发表于2017-07-18 10:45 被阅读0次

最近跟着教程做 Spring boot 的开发出现了这个错误:

spring boot configuration annotation processor not found in classpath

错误提示

打开在线文档后,把依赖拷进 build 也无济于事,

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

compileJava.dependsOn(processResources)

最后把依赖里的 optional "org.springframework.boot:spring-boot-configuration-processor" 改成 compile("org.springframework.boot:spring-boot-configuration-processor") 就好了

相关文章

网友评论

      本文标题:spring boot configuration annota

      本文链接:https://www.haomeiwen.com/subject/vfyckxtx.html