lock4j
lock4j copied to clipboard
基于Spring AOP 的声明式和编程式分布式锁,支持RedisTemplate、Redisson、Zookeeper
The spring-configuration-metadata.json file in the lock4j-zookeeper-spring-boot-starter module is not generated, which prevents the Properties class from being properly associated in Jetbrains IDEA.
RedissonLockAutoConfiguration 不用public申明的目的是什么吗? 目前基于sofa ark模块化开发,会出现引用了依赖但启动是不自动加载(会在启动类上排除),由于不是public修饰导致外部无法引用
2023-08-23 12:18:51.818 INFO 181806 [ main] egate$BeanPostProcessorChecker Bean 'lock4j-com.baomidou.lock.spring.boot.autoconfigure.Lock4jProperties' of type [com.baomidou.lock.spring.boot.autoconfigure.Lock4jProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2023-08-23 12:18:51.823 INFO...
# Enviroment JDK Version: 21 SpringBoot Version: 3.2.4 DynamicDatasourceStarter Version: # Describe 按照README文档里面的使用方式, 希望通过spel指定keys值, @Lock4j(name = "MY_NAME", keys = {"#request.name"}, expire = 10000, autoRelease = false) @PostMapping("/test") public void test(@RequestBody...
如何锁list
public User customMethod(List(string) orderList) 如果入参是 一个订单号列表,如 a,b,c三单 应该怎么上锁, 只要包含b订单号 也命中锁
版本: ` com.baomidou lock4j-redisson-spring-boot-starter 2.2.5 ` 异常: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lockTemplate' defined in class path resource [com/baomidou/lock/spring/boot/autoconfigure/LockAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: executors...
# Enviroment JDK Version: 11 SpringBoot Version: 2.3.3.RELEASE DynamicDatasourceStarter Version: # Describe 按照文档里的高级用法:6 指定时间内不释放锁(限流) `@GetMapping("test") @Lock4j(keys = "#userId", expire = 5000, acquireTimeout = 0, autoRelease = false) public String publish(@RequestParam...