Skip to content

Commit 59a7e18

Browse files
authored
Update index.md
1 parent 7a876a4 commit 59a7e18

File tree

1 file changed

+2
-1
lines changed
  • blog/Building RESTful CRUD API in springboot

1 file changed

+2
-1
lines changed

blog/Building RESTful CRUD API in springboot/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,13 +490,14 @@ public class UserController {
490490
}
491491
```
492492

493-
Note:
493+
:::note
494494

495495
- The `@PathVariable` annotation is used to extract values from the URI template of the incoming request. E.g., updateUser method.
496496

497497
- The `@RequestParam` annotation is used to extract query parameters from the URL of the incoming request.
498498

499499
- The `@RequestBody` annotation is used to extract the request body of the incoming HTTP request. It binds the body of the request to a method parameter in a controller method, typically for POST, PUT, and PATCH requests. E.g., registerUser method.
500+
:::
500501

501502
## Step 9: Create Exception Handler class
502503

0 commit comments

Comments
 (0)