踩坑记录
文章平均质量分 79
HKkkkkSky
记录学习中的每一个坑,分享学习经验
展开
-
jackson时间格式化自定义返回的时间格式
数据库返回的时间格式: createdAt: "2020-09-30T16:00:00.000+00:00", updatedAt: "2020-10-24T10:00:49.000+00:00", deletedAt: "1970-01-01T00:00:00.000+00:00"前端需要展示的时间格式: createdAt: "2020-10-01", updatedAt: "2020-10-24", deletedAt: "1970-01-01"解决方法:使用jackson时间原创 2020-11-13 17:42:58 · 1188 阅读 · 0 评论 -
MySql字段名为关键字,怎么办?
报错信息org.springframework.jdbc.BadSqlGrammarException: ### 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 n原创 2020-09-29 18:15:37 · 4371 阅读 · 0 评论