1.创建User实体类 ```java public class User { private String username; private int age; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public int getAge() { return age; } public void…
1.Controller中的业务方法的POJO参数的属性名与请求参数一致,参数值会自动映射匹配 1.创建POJO类 public class User { private String username; private int age; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public int…