📜  Spring Boot 将 json 映射到控制器中的对象 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:01.685000             🧑  作者: Mango

代码示例1
public class Customer {
    @JsonProperty("customer_id")
    private long customerId;
    @JsonProperty("first_name")
    private String firstName;
    @JsonProperty("last_name")
    private String lastName;
    @JsonProperty("town")
    private String town;
}