上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 61 下一页
  2023年6月30日
摘要: AES加密和解密,key需要32位 package com.example.core.mydemo.sign; import org.apache.commons.codec.binary.Base64; import org.apache.commons.lang3.StringUtils; im 阅读全文
posted @ 2023-06-30 18:50 oktokeep 阅读(930) 评论(0) 推荐(0)
摘要: LocalDateTime日期格式化和指定日期的时分秒 package com.example.core.mydemo.date; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.format. 阅读全文
posted @ 2023-06-30 18:48 oktokeep 阅读(853) 评论(0) 推荐(0)
摘要: Base64编码和解码字符串 package com.example.core.mydemo.cpic; import org.apache.commons.codec.binary.Base64; /** * strEncode=aGVsbG8gd29ybGQ= * strDecode=hello 阅读全文
posted @ 2023-06-30 18:47 oktokeep 阅读(47) 评论(0) 推荐(0)
  2023年6月14日
摘要: * StringUtils.join()方法使用 打印输出: * 使用 StringBuilder 进行拼接:张三,李四,王五 * 使用 StringUtils.join 进行拼接:张三,李四,王五 * 张三,李四,王五 * 张三&李四&王五 * 张三和李四和王五 * 手机 耳机 电脑 packag 阅读全文
posted @ 2023-06-14 10:41 oktokeep 阅读(235) 评论(0) 推荐(0)
  2023年6月5日
摘要: aspose word与pdf互转 package com.example.core.mydemo.aspose; import com.aspose.words.Document; import com.aspose.words.License; import com.aspose.words.S 阅读全文
posted @ 2023-06-05 22:22 oktokeep 阅读(1122) 评论(3) 推荐(0)
摘要: int类型在接收null会报错,需要使用Java包装类型Integer,且Integer不能equal String字符串 package com.example.core.mydemo.json2; /** * int类型在接收null会报错,需要使用Java包装类型Integer */ publ 阅读全文
posted @ 2023-06-05 22:16 oktokeep 阅读(118) 评论(0) 推荐(0)
摘要: Expected BEGIN_OBJECT but was STRING at line 1 column 2 path $ syntax error, expect {, actual string, pos 0, fastjson-version 1.2.62 syntax error, exp 阅读全文
posted @ 2023-06-05 22:13 oktokeep 阅读(3667) 评论(2) 推荐(0)
摘要: public static String doPostForJson(String url, String json,String byteAuthorization) { RestTemplate restTemplate = new RestTemplate(); logger.info("re 阅读全文
posted @ 2023-06-05 22:05 oktokeep 阅读(225) 评论(0) 推荐(0)
摘要: es是通过符合条件的json记录找出来,本身并不是将数据中的记录filter过滤。es nestedQuery不是过滤的结果,是匹配的这条es记录,所以数组中的其他的记录也会查询出来1.方法1:可以在程序中对数组中的记录过滤。2.方法2:在数据初始化的时候,将数据严格查询符合条件的才初始化。 需求背 阅读全文
posted @ 2023-06-05 21:57 oktokeep 阅读(1668) 评论(2) 推荐(0)
  2023年5月5日
摘要: xxlJob端口号及故障转移设置,解决负载均衡调度任务执行 my.xxljob.executorPort = 1162 my.xxljob.executorAppName = myService-job-executor-fat1 ##xxlJob admin后台服务地址 my.xxljob.adm 阅读全文
posted @ 2023-05-05 18:04 oktokeep 阅读(1142) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 61 下一页