### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘lock’ at line 1
- 这句话的大概意思就是lock错了
- 然后查了下问题就是Mysql关键字的重合
- Lock我作为表名然后与Mysql关键字重合了
- 果断改数据库表明和entity名字,结束
MySQL关键字查询
https://blog.youkuaiyun.com/qq_32828933/article/details/83247198