title: Angular and spring boot are not binding together so they run on same port 8080
body: <p>my angular is running on 4200 port and my spring boot is running in 8080 port. Here I have build the angular project by ng build --prod and dist folder is produced. and they are in same directory inside eclipse-workspace <a href="https://i.stack.imgur.com/ZGF0z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZGF0z.png" alt="enter image description here"></a></p>
  
  <p>And i have added plugin inside the pom.xml file as</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
            &lt;execution&gt;
                &lt;id&gt;copy-resources&lt;/id&gt;
                &lt;phase&gt;validate&lt;/phase&gt;
                &lt;goals&gt;&lt;goal&gt;copy-resources&lt;/goal&gt;&lt;/goals&gt;
                &lt;configuration&gt;
                    &lt;outputDirectory&gt;${basedir}/target/classes/static/&lt;/outputDirectory &gt;
                    &lt;resources&gt;
                        &lt;resource&gt;
                            &lt;directory&gt;${basedir}/../Angular6SpringBoot-Client/dist/Angular6SpringBoot&lt;/directory &gt;
                        &lt;/resource&gt;
                    &lt;/resources&gt;
                &lt;/configuration&gt;
            &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Inside the dist folder is:
  <a href="https://i.stack.imgur.com/6EqIg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6EqIg.png" alt="enter image description here"></a></p>
  
  <p>i have updated the project inside eclipse and also cleaned and build the project and when i run the project the output is not coming in localhost:8080 as it shwows:</p>
  
  <p><a href="https://i.stack.imgur.com/Cofiw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cofiw.png" alt="enter image description here"></a></p>
  
  <p>I need to integrate both angular and spring project and run at port 8080</p>