• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

How to receive ArrayList instance in Controller from postman tool?

 
Ranch Hand
Posts: 238
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: 2687
342
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.
 
Master Rancher
Posts: 4223
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And also what your Employee class looks like.
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!