Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -54,7 +54,6 @@ public class ForewarningTask {
|
|||||||
|
|
||||||
//定时任务
|
//定时任务
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
@Transactional(rollbackFor = Exception.class)
|
|
||||||
public void run() {
|
public void run() {
|
||||||
RLock lock = redissonClient.getLock(this.getClass().getName());
|
RLock lock = redissonClient.getLock(this.getClass().getName());
|
||||||
boolean tryLock = lock.tryLock(2, TimeUnit.SECONDS);
|
boolean tryLock = lock.tryLock(2, TimeUnit.SECONDS);
|
||||||
|
|||||||
Reference in New Issue
Block a user