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
All threads are completed, the program will close automatically. So, register an empty task with @Scheduled will create a loop thread to prevent shutdown.
@Scheduled