RESTful API设计需求如下: User.java package com.springboot.test; public class User { private Long id; private String name; private Integer age; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return…