• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

How to receive ArrayList instance in Controller from postman tool?

 
Ranch Hand
Posts: 235
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case of an HTML form, you can bind the form-fields data to List<Employee> at Controller :
but how to bind employee data using postman? It throws exception when you POST JSON data in postman, it doesn't receive List of Employee at controller. Please help to fix it.
Thanks.
 
Saloon Keeper
Posts: 2658
333
Android Eclipse IDE Angular Framework MySQL Database TypeScript Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Arun Singh Raaj wrote: It throws exception when you POST JSON data in postman, it doesn't receive List of Employee at controller.


Please share the details of the exception, and the JSON content that you are trying to POST.
 
Rancher
Posts: 4190
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And also what your Employee class looks like.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!