I want to integrate my angular app with spring boot project
https://github.com/angular/angular-cli#proxy-to-backend
here is an instruction how to do proxying to backend. I did everything step by step and only the first entry route / work .
here my proxy.conf.json file
{
"/token/*": {
"target": "http://localhost:8080",
"secure": false,
"logLevel": "debug",
"changeOrigin": true ,
"pathRewrite": {"^/token" : ""} ,
"headers": {
"Connection": "keep-alive"
}
}
}
but i got this error
Error: Uncaught (in promise): NullInjectorError: StaticInjectorError(to)[a]:
StaticInjectorError(Platform: core)[a]:
NullInjectorError: No provider for a!
NullInjectorError: StaticInjectorError(to)[a]:
StaticInjectorError(Platform: core)[a]:
NullInjectorError: No provider for a!
at rt.get (main-es2015.fb2e7d77856e5a1dfce3.js:1)

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Dec 20, 2019, 8:43 PM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 20, 2019, 9:31 PM EST
Letaief Mohamed11 reputationPosted Dec 21, 2019, 2:50 AM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 21, 2019, 6:35 AM EST