摘要: Joda-Time 处理日期时间的库 常用的类 Instant :用来表示时间轴上一个瞬时的点(时间戳) DateTime :用来替换JDK的Calendar类 LocalDate :表示一个本地的日期,而不包含时间部分(没有时区信息) LocalTime :表示一个本地的时间,而不包含日期部分(没 阅读全文
posted @ 2020-03-27 13:20 慕尘 阅读(603) 评论(0) 推荐(0) 编辑
摘要: spring boot 版本 2.2.5.RELEASE 初始化文件 schema.sql 放在项目resources下 drop table users if exists; drop table goods if exists; create table users ( id bigint au 阅读全文
posted @ 2020-03-27 11:34 慕尘 阅读(1388) 评论(0) 推荐(0) 编辑
摘要: Joda-Money提供了一个存储金额的类库 通常的做法就是数据库设计成bigint类型,单位是分,入库扩大 100 倍 ,出库缩小 100 倍 schema.sql drop table goods if exists; create table goods ( id bigint auto_in 阅读全文
posted @ 2020-03-27 11:32 慕尘 阅读(3397) 评论(0) 推荐(1) 编辑