title: Add spring boot application as dependency to another spring boot application
body: <p>I have a spring boot application A which is a spring data service to do some CRUD operations. Now I wanted to add this A as dependency to another Spring boot application B which is just a rest service to access various methods of A. When I did that and started B's Application class, I see the application A getting run and all the configurations are done and stops. What I wanted to achieve is application B should run a tomcat on pot 8080 so that I could access application B's CRUD methods. Could someone please help me to achieve this?</p>
  
  <p>Before writing this question I did search the forum for all relevant threads but could not find a solution.</p>