首页 > 学院 > 开发设计 > 正文

Cannot load JDBC driver class 'com.mysql.jdbc.Driver'

2019-11-06 06:14:58
字体:
来源:转载
供稿:网友

### Error updating database.  Cause: org.sPRingframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot load JDBC driver class 'com.MySQL.jdbc.Driver'### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'] with root cause添加mysql-connector-java的maven依赖就可以了。 

<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --><dependency>    <groupId>mysql</groupId>    <artifactId>mysql-connector-java</artifactId>    <version>6.0.5</version></dependency>


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表