com.mysql.cj.jdbc.exceptions.SQLError.createSQLException
改一下mysql驱动的版本号
<version>5.1.46</version>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
<version>5.1.46</version>
</dependency>
择善人而交,择善书而读,择善言而听,择善行而从。