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

  • Home
  • SEARCH
  • 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 8183771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:16:06+00:00 2026-06-07T01:16:06+00:00

In spring-mvc, the query for the controller call can be built using @RequestParam. If

  • 0

In spring-mvc, the query for the controller call can be built using @RequestParam. If you don’t supply the value, then it defaults to the method parameter name.

example :

@RequestMapping("/hello")
@ResponseBody
public String hello(@RequestParam String name)
{
    return "hello "+name; 
}

is mapped to

/hello?name=x 

My question is this. How does spring bind this information (or even access it) ? Arent parameter names discarded at runtime ? Does it use some library like paranamer ?

  • 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-06-07T01:16:09+00:00Added an answer on June 7, 2026 at 1:16 am

    It only works if you have debug enabled when you compile the class as here.
    Then the compiler keeps the info.

    As part of one of the last spring releases they extended this to include constructors. Seems mighty flakey to me – if you forget to add the debug option then your app stops working!

    So one possible way (with debug set to true) seems to be to use bytecode manipulation and there is this example of getting them when using asm. I don’t know if this is the same way Spring does it.

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

Sidebar

Related Questions

Can PHP array passed POST method to catch in ASP.NET MVC? Query string: WebAccess/ArrayTest?val[]=1&val[]=2&val[]=3
I am using a controller implementation that is extending the Spring MVC AbstractWizardFormController This
Spring MVC uses a DispatcherServlet to route control to an appropriate Controller. But where
In Spring MVC a Dispatcher servlet is used as a front controller to handle
With Spring MVC, you can specify that a particular URL will handled by a
I am using spring mvc in my application,when i created user i have to
I'm running Spring MVC 3.x and I have one Controller with RequestMapping annotations (
I am using JasperReports with Spring MVC for reporting in my application. Basically I
I have no DAO service layer in a spring MVC project. IN my controller,
I am using Spring MVC to develop a Java webapp. I have a setup

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.