Cannot find class: com.mysql.jdbc.driver
mybatis配置mysql报错,信息如下
Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: Cannot find class: com.mysql.jdbc.driver
原因是driver后的com.mysql.jdbc.driver的driver首字母要大写!-> com.mysql.jdbc.Driver