How to run spring-boot as a client application?
<p>I have <strong>2 Main entry points</strong> in a single application.</p>

<p>The <strong>first main</strong> starts the server, maps the controllers and starts some worker threads. These workers receive messages from cloud queues. </p>

<p>In case of increased load, I want to be able to add additional workers to do my job. So I have a <strong>second Main</strong> entry point in my application which I want to be able to start <strong>without starting the default server</strong> in spring-boot (as a client application) so as to avoid port conflict (and obviously which will lead to failure).</p>

<p>How do I achieve this? </p>