Spring Boot Annotion processor not found in classpath

問題:@ConfigurationProperties(prefix="") 沒有指定 classpath 時,IDEA 提示沒有找到 classpath。 原因:估計用的是高版本的springBoot,在x新版本中springBoot的@configurationProperties註解去掉了localhost屬性,導致這個錯誤發生,所以建議還是直接從配置文件中讀取字段而不是獲取對象。 在沒指定
相關文章
相關標籤/搜索