在maven项目搭建mybatis时报错
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.sql.SQLException: No suitable driver found for http://www.example.com
### The error may exist in com/mybatis/dao/UserMapper.xml
### The error may involve com.mybatis.dao.UserMapper.getUserById
### The error occurred while executing a query
### Cause: java.sql.SQLException: No suitable driver found for http://www.example.com
解决方法:
配置文件中的url改为jdbc.url
jdbc.url=jdbc:mysql://localhost:3306/mybatis?useSSL=false&useUnicode=true&characterEncoding=UTF-8
driver=com.mysql.jdbc.Driver
username=root
password=123456