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
Post a Comment