@ConfigurationProperties Spring Boot Configuration Annotation Processor not found in classpath

前端 未结 13 1273
太阳男子
太阳男子 2021-02-02 05:06

I try to make completion for custom properties in Spring Boot.

I tried to create a simple project via IntelliJ IDEA 2016.3:

  1. Created a new G
13条回答
  •  心在旅途
    2021-02-02 05:27

    I had the same problem. I use idea 2017.2 and gradle 4.1, and some blog said you should add:

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

    But I changed it to this:

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

    And the warning is gone.

提交回复
热议问题