摘要: 为什么要使用到分布式锁? 可以想象一下电商系统中的库存扣减场景: public void reduceStock(Long productId, int quantity) { // 1. 查询当前库存 int stock = productDao.getStock(productId); // 2 阅读全文
posted @ 2025-07-30 19:32 ゐ叶う枫ゆ 阅读(24) 评论(0) 推荐(0)