reload再次优化

This commit is contained in:
yandanyang 2021-09-27 17:37:05 +08:00
parent e59842c603
commit 34fed96ad7

View File

@ -2,7 +2,6 @@ package net.lab1024.smartadmin.service.config;
import lombok.extern.slf4j.Slf4j;
import net.lab1024.smartadmin.service.module.support.reload.SmartReloadCommand;
import net.lab1024.smartadmin.service.module.support.reload.core.SmartReloadLogger;
import net.lab1024.smartadmin.service.module.support.reload.core.SmartReloadManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
@ -26,17 +25,7 @@ public class SmartReloadConfig {
/**
* 创建 Reload Manager 调度器
*/
SmartReloadManager smartReloadManager = new SmartReloadManager(new SmartReloadLogger() {
@Override
public void error(String string) {
log.error(string);
}
@Override
public void error(String string, Throwable e) {
log.error(string, e);
}
},smartReloadCommand, 1);
SmartReloadManager smartReloadManager = new SmartReloadManager(smartReloadCommand);
return smartReloadManager;
}
}