会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
八英里
公众号:十进制
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
69
下一页
2023年11月14日
Java 中 为什么 Long 用== 有时候返回true 有时候事false
摘要: 今天做项目的时候一直跑不出想要的结果,最后才发现是一处判断语句出了问题。有两个Long类型的变量初始赋值都为10000,但用“==”来判断结果却是判断它们不相等。 Long中有⼀个静态的内部类LongCache,专门⽤于缓存-128⾄127之间的值,⼀共256个元素。如果值在[-128, 127]之
阅读全文
posted @ 2023-11-14 16:30 八英里
阅读(306)
评论(0)
推荐(0)
2023年10月10日
Non-terminating decimal expansion; no exact representable decimal result.
摘要: 上网查了一下这个异常的,找到了原因所在:通过BigDecimal的divide方法进行除法时当不整除,出现无限循环小数时,就会抛异常:java.lang.ArithmeticException: Non-terminating decimal expansion; no exact represen
阅读全文
posted @ 2023-10-10 15:52 八英里
阅读(118)
评论(0)
推荐(0)
2023年10月9日
什么是粘包?
摘要: https://blog.csdn.net/u014600626/article/details/108222945
阅读全文
posted @ 2023-10-09 15:57 八英里
阅读(38)
评论(0)
推荐(0)
2023年10月7日
java 数组list 找出最早最晚
摘要: // 找到最早的小时和最晚的小时,并具体到分钟 Optional<LocalTime> earliestTime = adminEventInfoDTOList.stream() .map(dto -> dto.getCreateTime().toLocalTime()) .min(LocalTim
阅读全文
posted @ 2023-10-07 15:09 八英里
阅读(479)
评论(0)
推荐(0)
2023年9月25日
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
摘要: MySQL有any_value(field)函数,他主要的作用就是抑制ONLY_FULL_GROUP_BY值被拒绝 官方有介绍,地址:https://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_any-v
阅读全文
posted @ 2023-09-25 10:58 八英里
阅读(18)
评论(0)
推荐(0)
2023年9月12日
string slip 转List<Long>
摘要: (Arrays.stream(result.getRows().getMemberIds().split(",")).map(s -> Long.parseLong(s.trim())).collect(Collectors.toList()))
阅读全文
posted @ 2023-09-12 15:40 八英里
阅读(70)
评论(0)
推荐(0)
2023年9月11日
mybatis-plus 设置主键自增。插入后并返回
摘要: @TableId(value = "id", type = IdType.AUTO)private Long id;
阅读全文
posted @ 2023-09-11 17:31 八英里
阅读(188)
评论(0)
推荐(0)
2023年9月8日
idea 工具
摘要: pom文件工具Dependency Analyzer fitten code ai 帮助
阅读全文
posted @ 2023-09-08 17:30 八英里
阅读(20)
评论(0)
推荐(0)
2023年8月31日
前台传String日期格式后台用date接收
摘要: @JsonFormat(pattern = "yyyy-MM-dd")@DateTimeFormat(pattern = "yyyy-MM-dd")private Date evaluationDate;
阅读全文
posted @ 2023-08-31 16:15 八英里
阅读(284)
评论(0)
推荐(0)
2023年8月30日
注解时分秒,显示到天
摘要: @JsonFormat(pattern= "yyyy-MM-dd")
阅读全文
posted @ 2023-08-30 15:20 八英里
阅读(36)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
69
下一页
公告