How to setup structure with SpringBoot and Angular2? How to setup structure with SpringBoot and Angular2? angularjs angularjs

How to setup structure with SpringBoot and Angular2?


1) Remove node_modules from static folder. Your build process should bundle all the necessary modules. node_modules is used only during build.

2) Do not copy node_modules into static folder

3) Remove sources from static folder. That one is meant only for generated bundle + some static PROD files like index.html


I shared on github a project that integrates Angular 2 with springboot. you can check here Angular 2 with spring boot