Compare commits

...

2 Commits

Author SHA1 Message Date
jianguo 84fe5afc62 Merge remote-tracking branch 'origin/master' 2024-06-04 16:31:47 +08:00
jianguo 23063b0d9c 1. 0.3.3 bug fix 2024-06-04 16:31:39 +08:00
1 changed files with 4 additions and 1 deletions

View File

@ -10,14 +10,17 @@ import org.aohe.core.utils.SystemUtils;
import org.aohe.core.web.SocketFactory;
import javax.swing.*;
import java.nio.file.Path;
@Slf4j
public class Main {
private static final String JAVA_IO_TMPDIR = System.getProperty("java.io.tmpdir");
public static void main(String[] args) {
log.info(" 当前系统类型: {}", SystemUtils.getOsName());
AppLocker locker = AppLocker.create("aoheSaneServiceLock").build();
AppLocker locker = AppLocker.create("aoheSaneServiceLock").setPath( Path.of(JAVA_IO_TMPDIR) ).build();
try {
//启动锁只允许启动一个
locker.lock();