错误之Spring Boot configuration annotation processor not found in classpath

在IDEA中,classpath中找不到Spring Boot配置注解,默认是在resources/application.properties文件中。解决方法,那就是在pom.xml文件中加入依赖spring-boot-configuration-processor

pom

    org.springframework.boot

    spring-boot-configuration-processor

    true

原文:https://docs.spring.io/spring-boot/docs/2.0.1.RELEASE/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor

你可能感兴趣的:(错误之Spring Boot configuration annotation processor not found in classpath)