Entity class when database field type for the Time corresponding to Java, SQL, Time type, Java, SQL, Time inherited Java. Util. Date types, annotations can be used in Java source said. The util. Date, Java. Util. Calendar, Java, lang. Long this three types, then @ DatiTimeFormat (pattern="HH: mm: ss") Private Time startTime. If you have any questions?
CodePudding user response:
Entity classes in Java. Util. Date, no other problems
@ DatiTimeFormat (pattern="HH: mm: ss") private Date startTime;