Easy and simple trick to run angular and SpringMVC on single server.

No perfect solution till now ? thats fine! I got solution. I will show you How I did!

Note: This trick will work for Angular 2/4/5/6/7/8/9/10/11 versions.

You need 2 contexts as frontend and backend.

  1. Angular 2 project
  2. Spring MVC

Follow below steps to achieve our main goal, to run SPRINGMVC + Angular on a single server.

  1. Create normal Dynamic web project.
  2. Add all dependancy required for spring or user maven pom.xml
  3. Open CMD, navigate to angular2 application. Hit command.
npm install

and then

ng build or use ng build

#angular-fundamentals #angular-concepts #single-server #angular

Run Spring4MVC With Angular On A Single Server
1.60 GEEK