lock4j
lock4j copied to clipboard
启动时异常:executors must have at least one
版本:
<!-- 若使用redisson作为分布式锁底层,则需要引入 --> <dependency> <groupId>com.baomidou</groupId> <artifactId>lock4j-redisson-spring-boot-starter</artifactId> <version>2.2.5</version> </dependency>
异常: 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 must have at least one