Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting csv file from Spring to Angular  RSS feed

kuhu vora
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am  trying to send a CSV file from my Spring controller to Angular to show on my HTML page. My request gives a 200 but the content type is coming 0. I read other similar questions but was unable to solve my issue. I am really new in both Angular and Spring. Please help.

My Spring controller:

My Angular controller:

I am getting undefined when I try to print the response:
[Thumbnail for Capture.PNG]
Well behaved women rarely make history - Eleanor Roosevelt. tiny ad:
Thoughts on deprecation in Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!