maven项目 springcloud的demo spring-mybatis整合 mysql数据库5.6
1. Caused by: java.lang.IllegalStateException: Cannot load driver class: org.gjt.mm.mysql.Driver
改为 com.mysql.jdbc.Driver后,出现如下提示:
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
最终改为: com.mysql.cj.jdbc.Driver
2. Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttr