java - How to integrate an Angular 4 app with a Spring Boot stack? -


i integrate angular 4 client app java spring application working on http://localhost:8080/ , offering rest endpoints. goal able call angular app url http://localhost:8080/adminisitration. how can that?

thanks in advance,

you need prod build ng app , place in spring-boot folder

1. create public folder under resources in spring-boot project  2. ng-build --prod, type command on angular project create dist folder under angular project directory  3. copy files dist folder , place in public folder under resources of spring-boot project. 

this run angular-app under spring-boot.

then hit http://localhost:8080/adminisitration, should work fine


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -