- Building Web Apps with Spring 5 and Angular
- Ajitesh Shukla
- 97字
- 2021-07-02 19:38:19
Handling request parameters
There are different ways in which user request parameters can be handled. We shall be taking the example of the signup form to understand the following concepts related to the most common ways of handling request parameters:
- Using the RequestParam annotation: This is used to bind the method parameters to web request parameters
- Using the RequestBody annotation: This is used to bind the method parameter to the body of the web request
- Using the PathVariable annotation: This is used to bind the method parameter to the URI template variable