会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
237
博客园
首页
新随笔
联系
订阅
管理
2023年10月
Long类型响应后面几个数字全部变成0
摘要: 添加一个配置类即可解决 public class JacksonConfig { @Bean @Primary @ConditionalOnMissingBean(ObjectMapper.class) public ObjectMapper jacksonObjectMapper(Jackson2
阅读全文
posted @ 2023-10-23 16:52 237237
阅读(151)
评论(0)
推荐(0)
2022年9月
SpingBoot 使用okHttp发application/x-www-form-urlencoded类型的请求
摘要: 1.maven配置 <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>3.14.2</version> </dependency> 2.okhttp配置类,按需设
阅读全文
posted @ 2022-09-30 15:06 237237
阅读(3319)
评论(0)
推荐(1)
MYSQL关联表更新
摘要: UPDATE t1 AS a JOIN t2 AS b ON a.c1 = b.c1 SET a.t2 = b.t2
阅读全文
posted @ 2022-09-30 14:56 237237
阅读(15)
评论(0)
推荐(0)
MYSQL 列值为JSON字符串 模糊条件查询
摘要: 这里需定位到你要查询的字段再json中的位置。 比如我需要列值JSON格式如下: 我需要匹配T in (123456,223432)可以像下面这样写 SELECT REPLACE ( JSON_EXTRACT( wms_response, '$.RESPONSE.LIST[0].T' ), '"',
阅读全文
posted @ 2022-09-30 14:53 237237
阅读(581)
评论(0)
推荐(0)
MYSQL 多条件 IN查询
摘要: SELECT * FROM where (c1,c2) in ((a,b),(c,d))
阅读全文
posted @ 2022-09-30 14:41 237237
阅读(65)
评论(0)
推荐(0)
controller 接受body为application/x-www-form-urlencoded类型的请求
摘要: @RequestMapping(value = "/receive", method = RequestMethod.POST, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) public String receive(@Reques
阅读全文
posted @ 2022-09-29 14:26 237237
阅读(454)
评论(0)
推荐(0)
DES加密解密使用 JAVA和python版本
摘要: java /** * 数据加密 * * @param content * @return * @throws Exception */ public static String encode(String content) { DES des = SecureUtil.des("12345678".
阅读全文
posted @ 2022-09-29 14:21 237237
阅读(135)
评论(0)
推荐(0)
公告