使用Lua基本实现分布式锁并自动续期
分布式锁的成熟方案很多,比如redission、zookeeper……
package com.cdn.redission.controller;import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation
分布式锁的成熟方案很多,比如redission、zookeeper……
package com.cdn.redission.controller;import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation