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

   

 

posted @ 2018-09-06 11:35  丶Overfly  阅读(454)  评论(0编辑  收藏  举报