Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

spring boot map json to object in controller

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;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #spring #boot #map #json #object #controller
ADD COMMENT
Topic
Name
9+6 =