Processing on Spring Boot Configuration Annotation Proessor not found in classpath of

1. When spring boot Configuration Annotation Proessor tips when not found in the classpath is used @ConfigurationProperties this comment, so problems in ConfigurationProperties comment.


The tips not found in classpath, queries about how to use this annotation to specify classpath, and then query location, spring boot1.5 above @ConfigurationProperties cancel location Notes

 

The official solutionintroduced in the following dependency pom file

    <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
    </dependency>

 

Guess you like

Origin www.cnblogs.com/dmxk/p/11692117.html