03 2023 档案

摘要:经Nginx反向代理后request.getScheme()获取不到https 解决步骤如下: 在Nginx中设置请求头 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded 阅读全文
posted @ 2023-03-23 17:51 Bruce.Chang.Lee 阅读(151) 评论(0) 推荐(0) 编辑
摘要:编、解码 2进制 BinaryCodec.toAsciiString("2".getBytes()); // 00110010 BinaryCodec.fromAscii("00110010".getBytes()); // 2 64编码 Base64.encodeBase64String("啊". 阅读全文
posted @ 2023-03-18 15:10 Bruce.Chang.Lee 阅读(41) 评论(0) 推荐(0) 编辑
摘要:Collection String str = null; List list1 = Arrays.asList(new String[]{"1", "2", "3"}); List list2 = Arrays.asList(new String[]{"1", "2", "4"}); // 判断是 阅读全文
posted @ 2023-03-18 15:09 Bruce.Chang.Lee 阅读(20) 评论(0) 推荐(0) 编辑
摘要:文件名操作 String name = "/home/xxx/test.txt"; FilenameUtils.getName(name); // "test.txt" FilenameUtils.getBaseName(name); // "test" FilenameUtils.getExten 阅读全文
posted @ 2023-03-18 15:08 Bruce.Chang.Lee 阅读(43) 评论(0) 推荐(0) 编辑
摘要:builder compare concurrent event exception function math NumberUtils.INTEGER_TWO; // 2 NumberUtils.INTEGER_ONE; // 1 NumberUtils.INTEGER_ZERO; // 0 Nu 阅读全文
posted @ 2023-03-18 15:07 Bruce.Chang.Lee 阅读(28) 评论(0) 推荐(0) 编辑