spring boot 使用
@ConfigurationProperties(prefix = "person")
时,运行将提示spring boot configuration annotation processor not found in classpath
但,依然可以正常使用,解决办法如下:
pom.xml增加:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
即可