sql语法错误
###Error querying database. Cause: java.sql.SQLSyntaxErrorException: 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,content,down_url,gmt_create,gmt_modified,is_deleted AS deleted FROM t_log_' at line 1
- 数据库字段为关键字
解决办法:
- 修改数据库字段为非关键字
- 在实体类中 属性上加 @TableField("
code
") 注解@TableField("`code`") private String code;