摘要: @Data public class xxxQuery{ //字符串转Date @DateTimeFormat(pattern = "<dateformate>") private Date date; } @Data public class xxxVO{ //Date转字符串 @JsonForm 阅读全文
posted @ 2022-11-06 20:22 junlu 阅读(490) 评论(0) 推荐(0) 编辑
摘要: gb2312字符集,字符码表分成94个区,每个区里有94个位,每位对应一个字符。 常用汉字范围,区:16-55,位:1-94 gb2312由两个字节组成一个字符,区对应高字节,位对应低字节,字节的值等于区/位号+0xA0 例如:啊,区16,位01 byte[] bytes = new byte[2] 阅读全文
posted @ 2022-11-05 17:58 junlu 阅读(886) 评论(0) 推荐(0) 编辑
摘要: 使用迭代器遍历ArrayList并尝试删除数据: public class CollectionApp { public static void main(String[] args) { List<Integer> list = new ArrayList<>(); list.add(0); li 阅读全文
posted @ 2021-01-03 22:49 junlu 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 输出程序运行后的打印结果: class Father{ static { System.out.print("1"); } Father(){ System.out.print("3"); } } class Son extends Father{ static { System.out.print 阅读全文
posted @ 2021-01-02 14:42 junlu 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 遇到的一道面试笔试题,输出程序运行后的打印结果: class ReturnAndFinally{ static String fun(){ try { int v = 1/0; }catch (Exception ex){ return "ERROR"; }finally { return "OK" 阅读全文
posted @ 2021-01-02 14:36 junlu 阅读(72) 评论(0) 推荐(0) 编辑
摘要: Thread.join中使用Object.wait实现: //java.lang.Thread public final synchronized void join(long millis) throws InterruptedException { long base = System.curr 阅读全文
posted @ 2020-03-11 23:42 junlu 阅读(895) 评论(0) 推荐(0) 编辑
摘要: 我一直以为SpringCloud是多么多么神奇的东西,Cloud,让我想起来云计算,“云”,感觉,好神奇,好复杂, 这些天先看了看Spring,后来看了看Eureka,最后发现SpringCloud的五大神兽,都是分布式,还是原来的那个圈圈,我以为是银河系一般的神奇,这家伙给我吓的,原来还在地球上。 阅读全文
posted @ 2019-06-20 16:28 junlu 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 21:52:26 阅读全文
posted @ 2019-06-04 21:52 junlu 阅读(371) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-31 09:37 junlu 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include "stdlib.h" 3 4 #define LIST_INIT_SIZE 100 5 #define LISTINCREMENT 10 6 7 typedef int ElemType; 8 9 typedef struct 10 { 阅读全文
posted @ 2018-08-17 17:21 junlu 阅读(415) 评论(0) 推荐(0) 编辑