You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran @RequestParam("id") int id. Then I changed the parameter to @RequestParam("id2"), but it didn't work; it still requires the id parameter instead of id2.
@RequestMapping("/hello")
public ResponseEntity<User> test(@RequestParam("id") int id) {
User user = userService.load(id);
return ResponseEntity.ok(user);
}
The text was updated successfully, but these errors were encountered:
I ran
@RequestParam("id")
int id. Then I changed the parameter to@RequestParam("id2")
, but it didn't work; it still requires the id parameter instead of id2.The text was updated successfully, but these errors were encountered: