mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-09 05:36:41 +08:00
reload再次优化
This commit is contained in:
parent
e59842c603
commit
34fed96ad7
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user