update document
This commit is contained in:
parent
f34361195f
commit
889ec44e45
|
@ -9,8 +9,8 @@ import java.util.concurrent.TimeUnit;
|
||||||
/**
|
/**
|
||||||
* @author xuxueli 2018-10-31 19:05:43
|
* @author xuxueli 2018-10-31 19:05:43
|
||||||
*/
|
*/
|
||||||
public class Application {
|
public class FramelessApplication {
|
||||||
private static Logger logger = LoggerFactory.getLogger(Application.class);
|
private static Logger logger = LoggerFactory.getLogger(FramelessApplication.class);
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
|
@ -18,8 +18,13 @@ public class Application {
|
||||||
// start
|
// start
|
||||||
FrameLessXxlJobConfig.getInstance().initXxlJobExecutor();
|
FrameLessXxlJobConfig.getInstance().initXxlJobExecutor();
|
||||||
|
|
||||||
|
// Blocks until interrupted
|
||||||
while (true) {
|
while (true) {
|
||||||
TimeUnit.HOURS.sleep(1);
|
try {
|
||||||
|
TimeUnit.HOURS.sleep(1);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error(e.getMessage(), e);
|
logger.error(e.getMessage(), e);
|
Loading…
Reference in New Issue