Site icon NgDeveloper

Angular 11 + Spring Boot Deployment in Apache Tomcat:

angular-9+-spring-boot-deployment-apache-tomcat-featured
angular-9+-spring-boot-deployment-apache-tomcat-blog

Angular 11 + Spring Boot Deployment in Apache Tomcat:

Pre requisite:

Angular 11 deployment in Apache Tomcat

Generate prod build for your angular 9 project

ng build --prod

Copy the dist/ folder content to the root of your Tomcat

Tomcat > webapps > paste the folder whatever you have copied inside the dist/ folder of your angular project.

Spring Boot War deployment in Apache Tomcat

Generate the prod war file of your spring boot project

mvn clean install

Copy the .war file to Tomcat > webapps folder.

Tomcat start

Just go to the path Tomcat > bin and run startup.exe to run the tomcat server.

If the server is started successfully, then you will be able to open your angular 9 project in this link,

Your project will be available in this port:
http://localhost:8080/

Spring boot project ports will be as per your configuration in the application.properties file.

Possible Issues you may face

Exit mobile version