Based on this aricle
An example-template project which uses:
- Spring Boot for backend
- Apache Cxf JAX-RS with autoconfiguration and package scanning
- Angular 4 frontend
- clean install frontend
- Run BootAngularApplication.main() (or mvn spring-boot:run)
Frontend will be included as resources in backend jar.
- npm start on frontend\src\main\frontend\package.json - starts frontend on 4200 port
- Backend - Run BootAngularApplication.main() (or mvn spring-boot:run)
Frondend will be served and reloaded as you make changes, and you can restart backend and frontend independently.