‘Integration of Angular with Spring MVC’


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 -prod’ for production build.

this command will create a “dist” folder, copy all files including all folders.

Paste those files and folders into 'WebContent' directory.

Last thing, you need to change basehref="./" in index.html.