How to prevent Spring Boot daemon/server application from closing/shutting down immediately?

前端 未结 9 745
不知归路
不知归路 2020-12-03 01:10

My Spring Boot application is not a web server, but it\'s a server using custom protocol (using Camel in this case).

But Spring Boot immediately stops (gracefully) a

9条回答
  •  醉话见心
    2020-12-03 02:03

    This is now made even simpler.

    Just add camel.springboot.main-run-controller=true to your application.properties

提交回复
热议问题