木木_彬

05 2020 档案

解决前端获取后端发送的日期比正常北京时间少八小时的问题
摘要:springboot项目配置步骤: 1.在application.yml参数配置文件中配置参数: spring: jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 阅读全文

posted @ 2020-05-05 20:05 木木_彬 阅读(1653) 评论(0) 推荐(0)

springboot+mybatis项目中配置自动增长主键
摘要:参考文章:https://www.jianshu.com/p/45da254ff497 1.在dao层添加注解:@Options(useGeneratedKeys = true, keyProperty = "id");其中 keyProperty = "id"中的id为实体类中对应表中自动增长注解 阅读全文

posted @ 2020-05-05 11:39 木木_彬 阅读(5742) 评论(0) 推荐(0)