Currently, I am in the process of developing a Spring Boot Application with Angular as the frontend and Spring-Boot for the backend. My goal is to create a deployable war
.
After researching various resources online, my current understanding is that Spring-Boot will run on port 8080 and Angular on port 4200. I am puzzled about how they will operate together seamlessly to function as an independent Spring-Boot application while also being deployable as a war
.
I have come across different methods such as creating separate war
files for each framework or even generating distinct projects for Spring-Boot and Angular then integrating the Angular output into the Spring Boot project. Unfortunately, none of these approaches fully meets my requirements.
My ultimate aim is to construct a unified Spring-Boot project where all Angular code is stored in the webapps
folder. Through this setup, I aim to establish a strong connection between Spring-Boot and Angular, allowing me to run it both as a standalone Spring-Boot application and deploy it as a war
.