I am getting DateTimeParseException while trying to add data in database using rest api.
command :
curl -X POST http://localhost:8080/rest/entities/xyz -H “Authorization: Bearer access-token” -H “Content-Type: application/json” -d “{\“date\”:\“01\/01\/2011\”}”
Java Entity Code :
@JmixEntity
@Table(name = “XYZ”)
@Entity(name = “xyz”)
public class TripDetails {
@Column(name = “DATE_”)
private LocalDate date;
}
Error :
java.time.format.DateTimeParseException: Text ‘01/01/2011’ could not be parsed at index 0
How do I resolve this issue ?
Thanks in advance