title: Deploy Angular 5 and spring boot applications on same tomcat at different ports
body: <p>I am developing a small project where I have Springboot java application and 
  Anagular 5 application. I want to deploy them on one tomcat. running each on diffrent ports.</p>
  
  <p>Application Flow should be like this:
  1) Some external service calls Java application with some headers. Springboot java application should read the headers put them in cookie and forward the request to Angular application.
  2)Angular application reads the headers from the cookie and communicates to another application(Hosted somewhere else) with API calls.</p>
  
  <p>What I tried:
   I am able to deploy Spring boot application on tomcat.
  For angular deployment I am copy pasting the dist folder into webapp.</p>
  
  <p>What is question about: I wanted them to run at a time on tomcat on defferent ports so.</p>
  
  <p>external application --calls-> java application(say running on localhost:8080)-----redirect from localhost:8080 to ----> Angular application(say running on localhost:8081).</p>