How to run spring-boot as a client application?
问题 I have 2 Main entry points in a single application. The first main starts the server, maps the controllers and starts some worker threads. These workers receive messages from cloud queues. In case of increased load, I want to be able to add additional workers to do my job. So I have a second Main entry point in my application which I want to be able to start without starting the default server in spring-boot (as a client application) so as to avoid port conflict (and obviously which will lead