- After creating spring boot project to create Angular project on the same folder :
From root directory firstly go upper directorycd ..
create new ng project with same spring boot directory name (example: bootang) , and i set src/main/app for Angular source
ng new bootang -sd src/main/app
- Change output directory for Angular output in .angular-cli.json :
"outDir": "src/main/webapp",
- Build angular app :
ng build
If you run with -w (watch) parameter, it will refresh angular build files.
Like ng serveng build -w
- Run your spring boot application and you will see Spring Boot and Angular runs on same server (default localhost:8080)I think this way is better/simple than JHipster ‘s lots of webpack configuration 🙂