TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Letaief Mohamed
NA
11
2.4k
Angular-CLI proxy to spring boot backend doesn't work
Dec 20 2019 8:41 PM
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)
Reply
Answers (
4
)
What's new in Angular 9
How to format json data to array format.