SpringDataJpa save操作提示sql语法错误

版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/xiao_dondon/article/details/82587533

错误提示:

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 'Desc, TestWebUrl, UpdateTime, WebUrl) values (null, 'ajaxurl', 'baby-techcenter-' at line 1

疑惑的是sql语句又不是我自己写的,怎么会出现语法错误?

最后排查原因,Desc字段是mysql的关键字,更改字段名称即可。

猜你喜欢

转载自blog.csdn.net/xiao_dondon/article/details/82587533