上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: String version = "V"+localDate7.getYear()+ (localDate7.getMonthValue()>10?localDate7.getMonthValue():"0"+localDate7.getMonthValue()); 阅读全文
posted @ 2023-03-21 16:23 java架构师1 阅读(336) 评论(0) 推荐(0)
摘要: select group_concat(B),A from TABLE group by A GROUP_CONCAT(distinct B) 去重 阅读全文
posted @ 2023-03-06 09:46 java架构师1 阅读(90) 评论(0) 推荐(0)
摘要: 动态代理 AOP切面代码 被代理对象 Object target = joinPoint.getTarget(); 当前对象 Object aThis = joinPoint.getThis(); 这里拿到的方法和反射的方法获取的不是一样的 Method method = ((MethodSigna 阅读全文
posted @ 2023-02-15 19:03 java架构师1 阅读(76) 评论(0) 推荐(0)
摘要: CompletableFuture.supplyAsync多线程异常捕获 /** * 保存错误信息 */ public volatile RuntimeException error = null; /** * 自动发起流程 * synchronized 保证对error的修改不会被其他因素影响 * 阅读全文
posted @ 2023-02-14 14:13 java架构师1 阅读(370) 评论(0) 推荐(0)
摘要: CDATA 是 Character Data 的缩写,意思是字符数据。 <![CDATA[]]>之间的内容不会被解析器解析,而是原样输出。因此 <![CDATA[<>]]> 意思是输出 <> 这两个符号。 阅读全文
posted @ 2023-02-13 14:01 java架构师1 阅读(74) 评论(0) 推荐(0)
摘要: 雪花算法id在json时后几位被置零 增加@JsonSerialize(using= ToStringSerializer.class)注解 ```import com.fasterxml.jackson.databind.annotation.JsonSerialize;import com.fa 阅读全文
posted @ 2022-12-16 18:31 java架构师1 阅读(136) 评论(0) 推荐(0)
摘要: 导出合并单元格工具类 1.main方法调用 public static void main(String[] args) { List<GroupExport<ScoreDemo, String>> groupExports = new ArrayList<>(); GroupExport<Scor 阅读全文
posted @ 2022-11-22 09:54 java架构师1 阅读(1476) 评论(0) 推荐(0)
摘要: 下滑线和驼峰之间转换 String key = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE,key)//驼峰转下划线 String key = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWE 阅读全文
posted @ 2022-10-27 16:41 java架构师1 阅读(273) 评论(0) 推荐(0)
摘要: mybatis 判断字符是否相等 1.外面单引号 里面双引号表示字符串 <if test='showColumn == null or showColumn == "" '> srr.id </if> <if test='showColumn != null and showColumn != "" 阅读全文
posted @ 2022-10-25 11:49 java架构师1 阅读(174) 评论(0) 推荐(0)
摘要: mysql 手动加表锁 lock tables purchase_minor_demand write; delete from purchase_minor_demand where id = 17; unlock tables; 阅读全文
posted @ 2022-09-27 09:12 java架构师1 阅读(35) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 12 下一页