Skip to content

Latest commit

 

History

History
 
 

springboot-exclude-web

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

该demo主要演示一个非web的springboot项目,主要实现的功能有如下

  • 保持后台程序能够一直运行

  • 项目通过捕获信号,进行平滑关闭。先通过kill -12,修改线程池等状态,不再接受新资源,待原有资源处理完毕后。 执行kill -15,关闭所有连接,并进行后续一些操作