@ConfigurationProperties Spring Boot Configuration Annotation Processor not found in classpath

前端 未结 13 1055
太阳男子
太阳男子 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:39

    According to the Spring Boot docs, the correct configuration since Gradle 4.6 is

    dependencies {
        annotationProcessor group: 'org.springframework.boot', name: 'spring-boot-configuration-processor'
        // ...
    }
    

    IntelliJ IDEA supports annotationProcessor scope since build 193.3382 (2019.3). Don't forget to enable annotation processing in IntelliJ IDEA settings.

提交回复
热议问题