mirror of
https://gitee.com/52itstyle/spring-boot-seckill.git
synced 2026-02-21 11:50:19 +00:00
码友<马丁的早晨>的建议 使用AOP + 锁实现
This commit is contained in:
@@ -95,7 +95,7 @@ public class SeckillController {
|
||||
Runnable task = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Result result = seckillService.startSeckilLock(killId, userId);
|
||||
Result result = seckillService.startSeckilAopLock(killId, userId);
|
||||
LOGGER.info("用户:{}{}",userId,result.get("msg"));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user