原文:STS中不同包但相同類名引起的問題:A component required a bean of type 'javax.activation.DataSource' that could not be found

. 問題輸出: APPLICATION FAILED TO START Description: A component required a bean of type javax.activation.DataSource that could not be found. Action: Consider defining a bean of type javax.activation.Dat ...

2019-09-09 17:57 0 992 推薦指數:

查看詳情

required a bean of type 'javax.sql.DataSource' that could not be found.

出現了這個問題,找了好多, 下邊這個是我的pom 我這里的問題: mysql-driver這個只是驅動,不是mysql的加載我們的配置的,以前我們都是自己寫連接,這里jdbc這個就是springboot中加載我們配置的。所以,不加就報錯了,我這里使用 ...

Mon Aug 31 00:56:00 CST 2020 0 3115
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM