摘要: show me your bugs 报错部分截图,其中上面定位到报错点,将其他服务导致异常问题 含义: JVM花费了98%以上的时间进行垃圾回收,但只回收了不到2%的堆内存 触发条件: 连续多次GC都无法有效释放内存 结果: JVM认为继续GC没有意义,抛出此错误 部分源码 @Slf4j publi 阅读全文
posted @ 2025-11-24 10:32 8023渡劫 阅读(2) 评论(0) 推荐(0)
摘要: com.github.pagehelper.Page#Page(int, int, boolean, java.lang.Boolean) 130 pageNum == 1 && pageSize == Integer.MAX_VALUE设置则不分页,设置pageSize=0并且pageSizeZe 阅读全文
posted @ 2024-08-16 17:28 8023渡劫 阅读(20) 评论(0) 推荐(0)
摘要: 代码 Page<CouponInfo> page = new Page<>(1, -1); CouponInfo couponInfo1 = new CouponInfo(); couponInfo1.setId(1630503086041903106L); Page<CouponInfo> cou 阅读全文
posted @ 2024-05-24 18:15 8023渡劫 阅读(173) 评论(0) 推荐(0)
摘要: @Configuration public class JsonConfig { static { ParserConfig.getGlobalInstance().setSafeMode(true); } @Bean // 使用@Bean注入fastJsonHttpMessageConvert p 阅读全文
posted @ 2024-05-21 15:59 8023渡劫 阅读(42) 评论(0) 推荐(0)
摘要: https://javaguide.cn/database/sql/sql-questions-01.html 小总结 using()函数适用联表字段一致情况的join having能使用select别名筛选 SELECT order_num, COUNT(*) AS items FROM Orde 阅读全文
posted @ 2024-03-22 17:48 8023渡劫 阅读(36) 评论(0) 推荐(0)
摘要: Semaphore https://www.bilibili.com/video/BV1Ae411C7xr/ public class Semaphore implements java.io.Serializable 同Reetrantlock在Sync 继承AQS abstract static 阅读全文
posted @ 2024-03-19 10:56 8023渡劫 阅读(28) 评论(0) 推荐(0)
摘要: public class ThreadPoolExecutor extends AbstractExecutorService private final AtomicInteger ctl = new AtomicInteger(ctlOf(RUNNING, 0)); ctl int32位 高3位 阅读全文
posted @ 2024-03-18 17:03 8023渡劫 阅读(20) 评论(0) 推荐(0)
摘要: ThreadLocal set public void set(T value) { Thread t = Thread.currentThread(); ThreadLocalMap map = getMap(t); if (map != null) //map不为null,之前设置过情况 map 阅读全文
posted @ 2024-03-15 17:13 8023渡劫 阅读(34) 评论(0) 推荐(0)
摘要: https://github.com/BNDong/Cnblogs-Theme-SimpleMemory 阅读全文
posted @ 2022-08-05 17:57 8023渡劫 阅读(62) 评论(0) 推荐(0)
摘要: Springboot 拦截器配置(登录拦截) 注意这里环境为springboot为2.1版本 1.编写拦截器实现类,实现接口 HandlerInterceptor, 重写里面需要的三个比较常用的方法,实现自己的业务逻辑代码 (就是自己拦截器拦截时做什么处理) package com.*.*.inte 阅读全文
posted @ 2022-03-16 15:31 8023渡劫 阅读(117) 评论(0) 推荐(0)