提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.framework.lock4j.config; |
H |
2 |
|
|
3 |
import com.iailab.framework.lock4j.core.DefaultLockFailureStrategy; |
|
4 |
import com.baomidou.lock.spring.boot.autoconfigure.LockAutoConfiguration; |
|
5 |
import org.springframework.boot.autoconfigure.AutoConfiguration; |
|
6 |
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; |
|
7 |
import org.springframework.context.annotation.Bean; |
|
8 |
|
|
9 |
@AutoConfiguration(before = LockAutoConfiguration.class) |
|
10 |
@ConditionalOnClass(name = "com.baomidou.lock.annotation.Lock4j") |
|
11 |
public class IailabLock4jConfiguration { |
|
12 |
|
|
13 |
@Bean |
|
14 |
public DefaultLockFailureStrategy lockFailureStrategy() { |
|
15 |
return new DefaultLockFailureStrategy(); |
|
16 |
} |
|
17 |
|
|
18 |
} |