1. 程式人生 > >Spring Boot 踩坑之路之 Configuration Annotation Proessor not found in classpath

Spring Boot 踩坑之路之 Configuration Annotation Proessor not found in classpath

roc found classpath 官方 ESS 解決方案 color cti bsp

1. 出現spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationProperties這個註解時,所以問題出現在ConfigurationProperties註解。
2. 根據提示的not found in classpath,查詢此註解的使用關於怎麽指定classpath,進而查詢location,spring boot1.5以上版本@ConfigurationProperties取消location註解.

官方解決方案,Maven引入依賴

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

Spring Boot 踩坑之路之 Configuration Annotation Proessor not found in classpath