Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3785902
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:35:59+00:00 2026-05-19T11:35:59+00:00

@RequestMapping(value = /tester/, method = RequestMethod.POST) public String testingonly(@RequestBody List<EachObject> eachobjectlist) throws IOException {

  • 0
@RequestMapping(value = "/tester/", method = RequestMethod.POST)
    public String  testingonly(@RequestBody List<EachObject> eachobjectlist) throws IOException {

then i do iterate eachobjectlist, but each item inside the list is type LinkedHashMap, arent it suppose to be “EachObject” type ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:36:00+00:00Added an answer on May 19, 2026 at 11:36 am

    Due to type erasure at runtime, the generic type EachObject is not present at runtime. Spring will not be able to determine this information. Spring only knows that the argument has a raw type List and it will inject a List of any type.

    According to @axtavt, generic types of method’s arguments are accessible but Spring may not have this implemented and probably won’t be implemented in the future. This is because generic type can be interface or abstract class and Spring will not be able to create a corresponding implementation of a given interface or abstract class. For example, if you request for a list of Fruit and there are two almost identical subclasses of Fruit, dertemining which subclass to be used will not be possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

@RequestMapping(value = /index, method = RequestMethod.GET) public final String index(final ModelMap model) { List
@RequestMapping(value = /article, method = RequestMethod.GET) public final String article(final ModelMap model) { }
The following JavaScript new Ajax.Request('/orders/check_first_last/A15Z2W2', {asynchronous:true, evalScripts:true, parameters:{first:$('input_initial').value, last:$('input_final').value, order_quantity:$('input_quantity').value}}); triggers an Ajax call
In this example, I don't understand what the BindingResult is for and what it
In the following example, the ScriptFile parameter is marked with an @Valid annotation. What
If my HTML form contains two form inputs ( input1 and input2 ), I
I'm validating incoming attribute, but the validator catches even the other pages not annotated
Designing my RESTful API, I would like use following URI http://[HOST]/[PLANET]/[LAT];[LONG] e.g. http://myserver/earth/50.2;29.1 What
I've read through all of the Spring 3 Web docs: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/spring-web.html but have been
I'm trying build my application using REST and Spring MVC. For some entities I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.