I am using Springboot 2.1.2.RELEASE. I have a get request with an object as input parameter. Expecting the attributes in my class to be request parameters. My EmployeeBean has properties in java naming convention. But I need the custom names to request parameters. Tried to achieve that using @JsonProperty/ @Jsongetter/ @JsonSetter annotations but its not working. Am I missing something?
@RequestMapping(value="/api", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE )
public List<Map<String, Object>> getEmployeeData(EmployeeBean employeeBean
@Data
public class EmployeeBean implements Serializable {
private static final long serialVersionUID = -2757478480787308113L;
@JsonProperty(value="first_name")
private String firstName;
@JsonProperty(value="last_name")
private String lastName;