打開之前學習代碼然後出現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>
特此記錄。