08 2023 档案

mybatis 中 实体类字段为 month SQL 会报错的问题
摘要:因为 month 是 mysql 的关键字 ,所以 你的实体类字段改成 months months months months months months就行了 阅读全文

posted @ 2023-08-18 12:06 王半仙儿的博客 阅读(64) 评论(0) 推荐(0)

list 中的Stream 累加操作
摘要:ublic class Test { public static void main(String[] args) { double sum = 860.10 + 1808.09; double sum1 = 1808.09 + 860.10; // output is 2668.19 System 阅读全文

posted @ 2023-08-18 10:25 王半仙儿的博客 阅读(92) 评论(0) 推荐(0)

关于没使用Mybatis 分页,分页sql默认执行count(0) 的问题
摘要:之前的Impl 的方法 :selectFromList(String uid, Integer pageNum, Integer pageSize) 之后的Impl 的方法 :selectFromList(String uid, Integer startPageNum, Integer pageS 阅读全文

posted @ 2023-08-17 16:15 王半仙儿的博客 阅读(487) 评论(0) 推荐(0)

Ambiguous Mapping 的处理方法
摘要:出现原因:两个不同的Controller 中出现相同映射路径 eg: AController:/v1/wdnmd/userList/list BController:/v1/wdnmd/userList/list 就会出现此问题 阅读全文

posted @ 2023-08-14 11:41 王半仙儿的博客 阅读(232) 评论(0) 推荐(0)

Mysql 不用Json存储 List<Long>的方式
摘要:public static void main(String[] args) { List<Long> idList = new ArrayList<>(); for (int i = 0; i < 20; i++) { idList.add(Long.valueOf(i)); } String i 阅读全文

posted @ 2023-08-10 11:18 王半仙儿的博客 阅读(53) 评论(0) 推荐(0)

@Builder 是建造者模式
摘要:待会再看 是lombok的 阅读全文

posted @ 2023-08-09 11:46 王半仙儿的博客 阅读(8) 评论(0) 推荐(0)

导航