使用@ConfigurationProperties 提示configuration annotaton processor not found in classpath


使用@ConfigurationProperties 提示configuration annotaton processor not found in classpath
解决办法:在pom中引入下面

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

相关文章: