上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 68 下一页
  2023年7月1日
摘要: mysql 联合表查询从表即使有索引依然ALL的一个原因-索引ALL解决,字符编码方式不一致导致全表搜索那就是主表和从表的关联字段的编码方式不一样!!! mysql索引失效,是因为charset不一致导致 mysql索引 适用 字符类型一致 产生的现象: 解决之后,正确的使用了t2.order_no 阅读全文
posted @ 2023-07-01 11:17 oktokeep 阅读(604) 评论(3) 推荐(0)
  2023年6月30日
摘要: 接口签名规则和Java实现签名和验签代码 签名规则 签名生成的通用步骤如下: 第一步,设所有发送或者接收到的数据为集合M,将集合M内非空参数值的参数按照参数名ASCII码从小到大排序(字典序),使用URL键值对的格式(即key1=value1&key2=value2…)拼接成字符串stringA。 阅读全文
posted @ 2023-06-30 18:50 oktokeep 阅读(2018) 评论(0) 推荐(0)
摘要: 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 阅读(1000) 评论(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 阅读(873) 评论(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 阅读(77) 评论(0) 推荐(0)
  2023年6月14日
摘要: * StringUtils.join()方法使用 打印输出: * 使用 StringBuilder 进行拼接:张三,李四,王五 * 使用 StringUtils.join 进行拼接:张三,李四,王五 * 张三,李四,王五 * 张三&李四&王五 * 张三和李四和王五 * 手机 耳机 电脑 packag 阅读全文
posted @ 2023-06-14 10:41 oktokeep 阅读(256) 评论(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 阅读(1143) 评论(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 阅读(129) 评论(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 阅读(3729) 评论(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 阅读(506) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 68 下一页