I am using Angular 2 to send the following JSON to a Spring Boot controller:
{
"portal_name": "test",
"app_name": "test",
"app_owner": "test",
"app_submitter": "test",
"onboarding_form_blob": [
{
"newSplunkRow": "test"
}
]
}
But when I send the JSON I get an this error from the Spring controller:
Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON document: Can not deserialize instance of java.lang.String out of START_ARRAY token
This is what the controller looks like for the Blob:
@Column(name = "onboarding_form_blob")
private String onboarding_form_blob;
And these are the Getters and Setters:
public String getOnboarding_form_blob() {
return onboarding_form_blob;
}
public void setOnboarding_form_blob(String onboarding_form_blob) {
this.onboarding_form_blob = onboarding_form_blob;
}


private java.util.List onboarding_form_blob;. Adjust the getters and setters. The error is referring mismatch between array type and string.