言落578 2022-06-07 15:56 采纳率: 83.3%
浏览 84
已结题

关于#java#的问题,如何解决?

Field error in object 'studyProjectInfo' on field 'createTime' : rejected value [2026-03-03T15:42]; codes [typeMismatch.studyProjectInfo.createTime,typeMismatch.createTime,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [studyProjectInfo.createTime,createTime]; arguments []; default message [createTime]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'createTime'; nested exception is java.lang.IllegalArgumentException: Date format is not supported [2026-03-03T15:42].]
Field error in object 'studyProjectInfo' on field 'updateTime' : rejected value [,2026-03-05T16:45]; codes [typeMismatch.studyProjectInfo.updateTime,typeMismatch.updateTime,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [studyProjectInfo.updateTime,updateTime]; arguments []; default message [updateTime]]; default message [Failed to convert property value of type 'java.lang.String[]' to required type 'java.util.Date' for property 'updateTime'; nested exception is java.lang.IllegalArgumentException: Date format is not supported [,2026-03-05T16:45].]
at org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument(ModelAttributeMethodProcessor.java:115) | admin | http-nio-8080-exec-7 | com.joyintech.platform.adivice.BasePackageAdvice.logErrorInfo(BasePackageAdvice.java:76)
DEBUG 15:43:45.942 | Executing sql insert:
INSERT INTO SYS_ERROR_LOG(ID,HOST_CODE,THREAD_CODE,ERROR_CLASS,ERROR_MESSAGE,ERROR_TRACES,ERROR_TIME,OPERATE_USER,CREATE_TIME)

  • 写回答

3条回答 默认 最新

  • 皮蛋不吃粥 2022-06-08 09:57
    关注

    时间转换问题 使用注解或者配置类转换

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 6月22日
  • 已采纳回答 6月14日
  • 创建了问题 6月7日

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改