Problem Description
Process development using the Spring Boot, the write TIP Spring Boot configuration annotation processor not found in classpath, the following screenshot class Properties reading configuration profile is as follows:
Official Documents
problem analysis
solution
Introduced in the automatic assembly maven mapped dependencies
Was added in pom.xml file dependent spring-boot-configuration-processor
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
Reference article
https://blog.csdn.net/qinxian20120/article/details/80252894
https://blog.csdn.net/weixin_38816859/article/details/80301827