原文: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