, proxy.config.json , .angular-cli.json
{
"/": {
"target": "http://localhost:8080",
"secure": false,
"logLevel": "debug"
}
}
URL- backend http://localhost:8080/administration /administration, http://localhost:8080/ .
app.component.ts ngOnInit()
this.http.get('/adminisitration',someRequestOption).subscribe(res =>{
console.log('happy...!');
})
-: (tomcat 8080)
:
ng serve --proxy-config proxy.config.json url http://localhost:4200, , .
Note:
above the default ports, as provided by spring boot and angular 4
source
share