npm run build
- build angular app
- start spring-boot-app
- open http://localhost:8080
ng serve
{
"/api/*": {
"target": "http://localhost:8080/",
"secure": false
}
}
- Open package.json
- Find start script
- Change to below code
ng serve --proxy-config proxy-config.json
- Create postbuild and predeploy script in package.json