摘要:
1、在List集合中,通过查看源码,就会发现ArrayList实现RandomAccess接口,Linked并没有实现RandomAccess接口。 ArrayList:源码 Linkedlist:源码 2、什么是RandomAccess,有什么作用呢: RandomAccess:源码 Random 阅读全文
2021年8月5日
2021年8月3日
摘要:
大颗粒事务以及句柄跳出形式 事务包含了整个处理过程,属于大颗粒的事务,会阻塞其它的写操作,建议如下: 1、取消显式事务(即去掉“SET autocommit=0”和“commit”这两句),让每个update操作自动提交,但需要结合业务场景确定能否去掉显式事务,如果实在不能取消,则改到晚上等很少人用 阅读全文
2021年7月16日
摘要:
自定义注解实现 //注解package com.example.test.service; import java.lang.annotation.*; @Target({ElementType.FIELD, ElementType.TYPE}) @Retention(RetentionPolicy 阅读全文
摘要:
获取当前对象 var $obj = getCurTabOrDialogObj('returnObj') 获取指定元素的值 var isStaged = $(obj).parents('tr').first().find('[name="T_HT_CONTRACT#SPARE_FIELD_11"]') 阅读全文
摘要:
@RequestMapping("exportContract") @ResponseBody public void exportContract(HttpServletRequest request, HttpServletResponse response){ //测试使用的数据( 创建相应的 阅读全文
摘要:
//金额转为大写 结果为:"陆万柒仟伍佰伍拾陆元叁角贰分" double a4 = 67556.32; String digitUppercase = Convert.digitToChinese(a4); //转换为日期对象: String a = "2017-05-06"; Date value 阅读全文
摘要:
package com.szjz.web.invoice.invoiceInfo; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.lang.Console; import cn.hutool.json.JSONUti 阅读全文
摘要:
public String deEncodeByPath(String path) { String content=""; String fileType = path.substring(path.lastIndexOf(".")+1); if("pdf".equalsIgnoreCase(fi 阅读全文
2020年2月14日
只有注册用户登录后才能阅读该文。 阅读全文