原文:springboot項目配置類使用@ConfigurationProperties注解時,提示Spring Boot Configuration Annotation Proessor not found in classpath

如上圖所示,雖然不影響編譯和運行,但是看着別扭。 解決方法:添加下面的依賴 ...

2020-01-06 17:04 0 4608 推薦指數:

查看詳情

Spring Boot Configuration Annotation Processor not found in classpath

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

Mon Jan 20 01:19:00 CST 2020 0 1238
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM