@ConfigurationProperties Spring Boot Configuration Annotation Processor not found in classpath

Feeco :

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 Gradle project with Spring Boot Initializer (I haven't checked nothing at all).
2. Created a new class Properties.
3. When I annotated it with @ConfigurationProperties, the next notification has appeared: notification The documentation said that I should add the following to my project:

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

compileJava.dependsOn(processResources)

After that I tried to rebuild project and enable annotation processors in settings but the notification hasn't gone. Completion doesn't work too (I created a string my).

Icex :

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

@ConfigurationProperties Spring Boot Configuration Annotation Processor not found in classpath

How to configure for Spring Boot Configuration Annotation Processor using @ConfigurationProperties on IntelliJ?

Spring boot. The profit of using @ConfigurationProperties annotation

Re-run Spring Boot Configuration Annotation Processor to update generated metadata

How to do as guide "Re-run Spring Boot Configuration Annotation Processor to update generated metadata"?

SpringBoot No ConfigurationProperties annotation found

Spring Boot Configuration class cannot wire ConfigurationProperties at runtime

Spring boot @ConfigurationProperties not loaded

Spring Boot not loading @ConfigurationProperties

Spring Boot - nesting ConfigurationProperties

Spring Boot ConfigurationProperties issues

Spring boot @ConfigurationProperties not working

Kotlin & Spring Boot @ConfigurationProperties

Spring Boot @ConfigurationProperties

Maven annotation processing processor not found

spring-boot-configuration-processor is not working on maven submodule project

Is spring-boot-configuration-processor dependency only for IDE support?

how to test configuration classes that rely on the @ConfigurationProperties annotation?

Kotlin Spring boot @ConfigurationProperties for list

ConfigurationProperties outside of spring-boot

Spring Boot 1.5 validated ConfigurationProperties

Spring Boot classpath

Testing @ConfigurationProperties annotation without loading spring context

How to load multiple configuration file from classpath using @ImportResource annotation in Spring

How to include a Annotation Processor generated code to test classpath in Java/Kotlin

Spring Boot jupiter annotation custom extension configuration not working

Why Spring Boot Application class needs to have @Configuration annotation?

@Given or @When annotation of cucumber is throwing errors related spring boot configuration

Can Spring Boot @Import annotation be used without @Configuration tag