what is typeMismatch.java.time.LocalTime,typemismatch error and how can I solve it? could it be of the local time format. I have this in my class: @DateTimeFormat(pattern="hh:mm:ss") private LocalTime movieTime; I tried it without SS but did not work.
I have this in my schema.sql file : movieTime time,
Hello, Student you are facing typemismatch error in code beacuse it is not formatted in correct manner.
You want local time format, try this one it should work perfectly.
You'll need to supply a DateTimeFormat annotation on the LocalTime instances so this will ensure common ISO time in your code.
Correct way: -
@DateTimeFormat(iso = DateTimeFormat.ISO.TIME)
private LocalTime localTime;
I think now you can implement further on your own, Happy coding!!
Please hit that like or thumbs-up button, It really motivates me>3 (I hope you will do that?)
Thank you!!
Get Answers For Free
Most questions answered within 1 hours.