Java application shutdown / kill hook

前端 未结 0 1481
死守一世寂寞
死守一世寂寞 2021-01-22 03:23

My Java application have this shutdown hook:

Runtime.getRuntime().addShutdownHook(new Thread(() -> {
  LOG.info("Terminating app");
}));
相关标签:
回答
  • 消灭零回复
提交回复
热议问题