خرید بک لینک

Vote count: 0

Consider this property in an Hibeate-managed entity:

@JsonFormat(patte = "HH:mm")
@Column(name = "start_time")
private java.sql.Time startTime;

Jackson does apparently not manage to de-serialize the time-string into an instance of java.sql.Time, because I am getting this Exception:

.w.s.m.s.DefaultHandlerExceptionResolver : Failed to read HTTP message:
org.springframework.http.converter.HttpMessageNotReadableException:
Could not read document: Can not construct instance of java.sql.Time,
problem: null

How can I instruct Jackson to understand what to do?

asked 21 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 15 مرداد 1395 ساعت: 4:06

صفحه بندی