db.properties中的内容
Mybatis-config.xml中的environment中的内容
发现它报Error querying database. Cause: java.sql.SQLException: No suitable driver found for http://www.example.com这个错误,查看target编译后的Mybatis-config.xml文件,其中的url的变量名被覆盖了。
解决方法
修改db.properties和Mybatis-config.xml中的url名字,换个名字就好了。