mybatis - maven - eclipse 坑爹问题: No suitable driver found for http://maven.apache.org

坑爹的问题,调查了1天

一直以为是驱动问题,根源却在url上:No suitable driver found for http://maven.apache.org

根源:

1、在jdbc.properties文件中,定义url

url=jdbc:mysql://10.199.xx.xx:3306/vop_data_stg

2、pom.xml中同样也有一个url变量

<url>http://maven.apache.org</url>

所以url被替换成 http://maven.apache.org,于是乎就悲剧了。。。欲哭无泪

感谢这位同学的分享:http://www.ithao123.cn/content-4983093.html

***************************** 
没有积累,就没有成长... 
*****************************

猜你喜欢

转载自blog.csdn.net/tyt1002/article/details/81066153