RequestAttributes requestAttributes = RequestContextHolder.currentRequestAttributes();
Thread thread=new Thread(()-> {
RequestContextHolder.setRequestAttributes(requestAttributes, true);
syncService.deleteBuilding(vo);
});
thread.start();
在微服务环境下,远程调用feign和异步线程存在请求数据丢失问题
最新推荐文章于 2024-07-23 14:51:41 发布