会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
唏嘘-
博客园
首页
新随笔
联系
订阅
管理
2025年2月17日
unable to resolve r eference ‘refs/remotes/origin/xxx‘: reference broken
摘要: 问题:电脑突然关机,然后提交文件的时候提示 unable to resolve r eference ‘refs/remotes/origin/xxx‘: reference broken 解决方法:删除.git文件夹下的(上面路径的文件)refs/remotes/origin/xxx,再push就
阅读全文
posted @ 2025-02-17 11:18 唏嘘-
阅读(17)
评论(0)
推荐(0)
2024年12月18日
Java 格式化BigDecimal返回前端 显示小数点后的0
摘要: 前端需要保留2位小数,即使小数点后是 0 也需要显示; 1、使用@JsonSerialize输出数据保留两位小数,创建一个BigDecimal格式化工具 import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jac
阅读全文
posted @ 2024-12-18 12:53 唏嘘-
阅读(664)
评论(0)
推荐(2)
2024年10月12日
Non-terminating decimal expansion; no exact representable decimal result.
摘要: 使用Bigdecimal 做除法 public static void main(String[] args) { // 1、不设置保留位数 System.out.println(BigDecimal.valueOf(2).divide(BigDecimal.valueOf(3))); // 2、d
阅读全文
posted @ 2024-10-12 10:16 唏嘘-
阅读(72)
评论(0)
推荐(0)
2024年9月30日
Linux中jar包启动运行以及后台运行
摘要: 1、直接运行 java -jar influxdbUtils.jar 特点:当前ssh窗口被锁定,可按CTRL + C打断程序运行,或直接关闭窗口,程序退出 2、后台运行但是关闭窗口程序中断 java -jar influxdbUtils.jar & 3、后台运行并且指定输出到文件(关闭窗口程序不中
阅读全文
posted @ 2024-09-30 10:55 唏嘘-
阅读(318)
评论(0)
推荐(0)
2024年8月6日
Failed to read auto-increment value from storage engine
摘要: 设置id自增,但是在进行数据的插入时,系统提示Failed to read auto-increment value from storage engine(从存储引擎读取自增字段失败)错误; 1)把涉及数据表的自增字段的自增选项去掉,保存一下 2)重新将这个字段设置为自增字段
阅读全文
posted @ 2024-08-06 14:06 唏嘘-
阅读(453)
评论(0)
推荐(0)
windows下RabbitMQ安装后,无法进入web管理页面问题
摘要: 在window安装rabbitmq,访问http://127.0.0.1:15672/,访问不了;有可能是没开启网页管理界面 1、在cmd窗口下进入rabbitmq安装目录下的sbin目录,使用rabbitmq-plugins.bat list查看已安装的插件列表。 2、使用rabbitmq-plu
阅读全文
posted @ 2024-08-06 09:16 唏嘘-
阅读(1317)
评论(0)
推荐(1)
2024年7月1日
前端接收后端返回的map
摘要: 1、返回的对象接口 const mapObj = { “apple": ‘苹果’, ”banana“: ‘香蕉’ }; 2、转换为ES6 map对象 const map = new Map(Object.entries(mapObj)); 3、访问 map.get('apple');
阅读全文
posted @ 2024-07-01 13:32 唏嘘-
阅读(116)
评论(0)
推荐(1)
element UI 表格单击行时选中该行 checkBox
摘要: 1、table上增加 @row-click="handleClickTableRow" 2、单选框的checkbox那列加上 @selection-change="handleSelectionChange" 3、table加上ref 代码实现: methods: { handleClickTabl
阅读全文
posted @ 2024-07-01 13:16 唏嘘-
阅读(193)
评论(0)
推荐(0)
2024年5月15日
Mybatis-Plus中 updateById 无法将已有值的字段更新为 null
摘要: 在 MyBatis-Plus 中,使用updateById,null字段并不会更新,其实是和更新的策略有关,当然,也有插入策略。 1、调整全局策略(会对所有的字段都忽略判断,如果一些字段不想要修改,但是传值的时候没有传递过来,就会被更新为null) mybatis-plus: global-conf
阅读全文
posted @ 2024-05-15 14:42 唏嘘-
阅读(4358)
评论(0)
推荐(0)
js 报错:Uncaught URIError: URI malformed
摘要: 报错: Uncaught URIError: URI malformed 原因: decodeURI转码时,通过%进行解析,如果字符串中存在%(如: ‘100%’),则会出现URI malformed 解决方案:将 % 替换成 %25 const percent2percent25 = (URI)
阅读全文
posted @ 2024-05-15 14:19 唏嘘-
阅读(2102)
评论(0)
推荐(1)
下一页
公告