1. 0.3.3 bug fix

This commit is contained in:
jianguo 2024-06-04 15:51:16 +08:00
parent c192fcf954
commit b0701543b1
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ public class Main {
public static void main(String[] args) {
log.info(" 当前系统类型: {}", SystemUtils.getOsName());
try (AppLocker locker = AppLocker.create("aoheSaneServiceLock").build()){
AppLocker locker = AppLocker.create("aoheSaneServiceLock").build();
try {
//启动锁只允许启动一个
locker.lock();