问题原因
@ConfigurationProperties(prefix=”author”) 没有指定classpath时,IDEA提示没有找到classpath。
问题分析
出现spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationProperties这个注解时,所以问题出现在ConfigurationProperties注解。
解决方案
pom加入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>