我没有要求按摩的问题
http://localhost:8080/save-user?username=spring&firstname=sp&lastname=try&age=21&password=123123/
@GetMapping("/save-user")
public String saveUser(@RequestParam String username, @RequestParam String firstname, @RequestParam String lastname, @RequestParam int age, @RequestParam String password) {
User user = new User(username,firstname,lastname,age,password);
userService.saveMyUser(user);
return "User Saved";
}