会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
猿码哥
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
11
下一页
2023年3月17日
获取jsonArray的属性值
摘要: 如果对方传的 json 是jsonArray 格式的json 可以采用下面的方式进行获取里面的参数值 例如 : msgId 就是里面的属性 public Boolean testSyncStatus(String json) { JSONArray backJson = JSON.parseArra
阅读全文
posted @ 2023-03-17 14:36 猿码哥
阅读(383)
评论(0)
推荐(0)
2022年12月16日
分布式事务解决方案
摘要: 分布式事务解决方案 1 分布式事务在面试中如何理解? 2 两阶段提交协议?三阶段提交协议? 3 什么是TCC (Try Confirm Cancel) 解决方案? 4 如何利用本地事务表来实现分布式事务? 5 最大努力通知方案是什么? 1 分布式事务是指会涉及到操作多个数据库(服务)的事务 其实就是
阅读全文
posted @ 2022-12-16 12:40 猿码哥
阅读(41)
评论(0)
推荐(0)
2021年10月16日
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure问题解决
该文被密码保护。
阅读全文
posted @ 2021-10-16 19:18 猿码哥
阅读(0)
评论(0)
推荐(0)
2021年8月29日
RouYi(Export excel)
摘要: /** * 对list数据源将其里面的数据导入到excel表单 * * @param sheetName 工作表的名称 * @return 结果 */public AjaxResult importTemplateExcel(String sheetName){ this.init(null, sh
阅读全文
posted @ 2021-08-29 22:29 猿码哥
阅读(364)
评论(0)
推荐(0)
2021年6月17日
查询Json 层级对象
摘要: @AutowiredOrgSearchFeginClient orgSearchFeginClient;@Overridepublic ResponseData orgSearchTree(Map map) { JSONObject json = null; List<Map> result = n
阅读全文
posted @ 2021-06-17 23:20 猿码哥
阅读(487)
评论(0)
推荐(0)
利用枚举类进行json输出key value数据格式
摘要: public ResponseData customerType() { ResponseData res = new ResponseData(); try { CustomerTypeEnums[] customerTypeEnums = CustomerTypeEnums.values();
阅读全文
posted @ 2021-06-17 23:06 猿码哥
阅读(469)
评论(0)
推荐(0)
UniqueKeyUtil 主键工具类
摘要: package com.icss.common.util;import java.util.UUID;/** * 主键工具类 */public class UniqueKeyUtil { /** * 生成唯一的主键 * 格式: 时间+随机数 * @return */ public static sy
阅读全文
posted @ 2021-06-17 22:52 猿码哥
阅读(130)
评论(0)
推荐(0)
UserUtils获取当前登录人
摘要: package com.icss.common.util;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONArray;import com.alibaba.fastjson.JSONObject;import com.
阅读全文
posted @ 2021-06-17 22:39 猿码哥
阅读(386)
评论(0)
推荐(0)
ApplicationContextUtil 上下文工具类
摘要: package com.icss.common.core.config;import org.springframework.beans.BeansException;import org.springframework.context.ApplicationContext;import org.s
阅读全文
posted @ 2021-06-17 22:34 猿码哥
阅读(289)
评论(0)
推荐(0)
RedisService
摘要: import org.springframework.beans.factory.annotation.Autowired;import org.springframework.data.redis.core.HashOperations;import org.springframework.dat
阅读全文
posted @ 2021-06-17 22:06 猿码哥
阅读(586)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
11
下一页
公告