Adding configurations to Spring Boot and Angular’s integration
In this section, we will write some configurations in the Spring Boot application and the Angular application to ensure that Spring Boot will run in production and that Angular will render the web application’s user interface.
First, let’s move the Angular app to the directory of our Spring Boot application.
Adding the Angular app to the Spring Boot project
In this section, we will move the Angular app to the Spring Boot project. By doing this, there will be an Angular project inside the Spring Boot project.
To start, create a new folder named frontend
inside the Spring Boot project. Move all the files and folders of the Angular application inside the frontend
folder, like so:
Figure 16.1 – The frontend folder inside the Spring Boot project
Figure 16.1 shows all the Angular files and folders inside the frontend
folder, which is inside the Spring Boot...