原文:IDEA報錯: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"

運行審核流模塊: 在ActivitiServiceApplication模塊日志報錯: Error starting ApplicationContext. To display the auto configuration report re run your application with debug enabled. : : . ERROR main o.s.boot.SpringAppl ...

2018-01-26 16:36 0 24353 推薦指數:

查看詳情

Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.

報錯信息中,我們就可以分析出錯誤原因是觸發了數據源的自動化配置,然而當前項目其實並不需要數據源。查其根源是依賴方提供的API依賴中引用了一些多余的依賴觸發了該自動化配置的加載。 如何解決 為了解決上面所述的問題,我們可以用兩種方法來解決: 通過外部依賴的修改來解決:通過與依賴方 ...

Thu Apr 26 21:53:00 CST 2018 0 24576
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM