原文:Spring Boot Configuration Annotation Processor not found in classpath

今天在自己寫springboot的demo時,想寫一個忽略鑒權的配置,用實體屬性來讀取配置文件中需要忽略鑒權的路徑,存入List lt String gt 中,結果idea給我提示了這么一個警告。 我的配置文件這這樣寫的: 開始沒有在意,直接運行了代碼,結果給我報了注入為null的錯誤,對了,我在WebSecurityConfig類中注入了IgnoredUrlsProperties。 最后百度參考 ...

2020-01-19 17:19 0 1238 推薦指數:

查看詳情

springboot configuration annotation processor not found in classpath問題

有時在springboot項目中會出現如下提示: 這是因為springboot默認使用yml中的配置,但有時候要用傳統的xml或properties配置,就需要使用spring-boot-configuration-processor了 解決方法: 在pom依賴對應依賴即可 ...

Thu May 14 23:36:00 CST 2020 0 688
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM