摘要: 问题:电脑突然关机,然后提交文件的时候提示 unable to resolve r eference ‘refs/remotes/origin/xxx‘: reference broken 解决方法:删除.git文件夹下的(上面路径的文件)refs/remotes/origin/xxx,再push就 阅读全文
posted @ 2025-02-17 11:18 唏嘘- 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 前端需要保留2位小数,即使小数点后是 0 也需要显示; 1、使用@JsonSerialize输出数据保留两位小数,创建一个BigDecimal格式化工具 import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jac 阅读全文
posted @ 2024-12-18 12:53 唏嘘- 阅读(238) 评论(0) 推荐(1) 编辑
摘要: 使用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 唏嘘- 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1、直接运行 java -jar influxdbUtils.jar 特点:当前ssh窗口被锁定,可按CTRL + C打断程序运行,或直接关闭窗口,程序退出 2、后台运行但是关闭窗口程序中断 java -jar influxdbUtils.jar & 3、后台运行并且指定输出到文件(关闭窗口程序不中 阅读全文
posted @ 2024-09-30 10:55 唏嘘- 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 设置id自增,但是在进行数据的插入时,系统提示Failed to read auto-increment value from storage engine(从存储引擎读取自增字段失败)错误; 1)把涉及数据表的自增字段的自增选项去掉,保存一下 2)重新将这个字段设置为自增字段 阅读全文
posted @ 2024-08-06 14:06 唏嘘- 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 在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 唏嘘- 阅读(953) 评论(0) 推荐(1) 编辑
摘要: 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 唏嘘- 阅读(75) 评论(0) 推荐(1) 编辑
摘要: 1、table上增加 @row-click="handleClickTableRow" 2、单选框的checkbox那列加上 @selection-change="handleSelectionChange" 3、table加上ref 代码实现: methods: { handleClickTabl 阅读全文
posted @ 2024-07-01 13:16 唏嘘- 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 在 MyBatis-Plus 中,使用updateById,null字段并不会更新,其实是和更新的策略有关,当然,也有插入策略。 1、调整全局策略(会对所有的字段都忽略判断,如果一些字段不想要修改,但是传值的时候没有传递过来,就会被更新为null) mybatis-plus: global-conf 阅读全文
posted @ 2024-05-15 14:42 唏嘘- 阅读(3532) 评论(0) 推荐(0) 编辑
摘要: 报错: Uncaught URIError: URI malformed 原因: decodeURI转码时,通过%进行解析,如果字符串中存在%(如: ‘100%’),则会出现URI malformed 解决方案:将 % 替换成 %25 const percent2percent25 = (URI) 阅读全文
posted @ 2024-05-15 14:19 唏嘘- 阅读(1548) 评论(0) 推荐(1) 编辑
点击右上角即可分享
微信分享提示