What is the difference between @requestbody and @requestparam?



What is the difference between @requestbody and @requestparam?..

Answer / Rahul Dev

@RequestParam is used to map request parameters sent in the query string or as form data. @RequestBody, on the other hand, is used to bind HTTP request body content directly to a method parameter.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What do you know the spring mvc interceptor and how is it used?

1 Answers  


What is context service?

1 Answers  


What are advantages of spring usage?

1 Answers  


Explain the concept of a beanfactory?

1 Answers  


What are the types of controller in spring?

1 Answers  


What is spring jpa repository?

1 Answers  


Explain what is spring mvc?

1 Answers  


Why do we use @override annotation?

1 Answers  


Is spring boot a mvc? : Spring Boot

1 Answers  


Why do we need annotations in spring?

1 Answers  


Why spring is loosely coupled?

1 Answers  


Why do we need aop in spring?

1 Answers  


Categories