968 Star 2.1K Fork 1.1K

TinyFramework / tiny

 / 详情

rg.tinygroup.springmvc-3.0.0 <> 不能工作

待办的
创建于  
2017-01-08 17:21

在使用org.tinygroup.springmvc-3.0.0时
<property-editor bean-name="customDateRegistrar">
属性不能正常工作,在org.tinygroup.springmvc-2.3.0中是好的。

Field error in object 'user' on field 'expireDate': rejected value [2017-01-01]; codes [typeMismatch.user.expireDate,typeMismatch.expireDate,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [user.expireDate,expireDate]; arguments []; default message [expireDate]]; default message [Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for property 'expireDate'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'expireDate': no matching editors or conversion strategy found]}
org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'user' on field 'expireDate': rejected value [2017-01-01]; codes [typeMismatch.user.expireDate,typeMismatch.expireDate,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [user.expireDate,expireDate]; arguments []; default message [expireDate]]; default message [Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for property 'expireDate'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'expireDate': no matching editors or conversion strategy found]
    at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doBind(HandlerMethodInvoker.java:826)
    at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:374)
    at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:175)
    at org.tinygroup.springmvc.handleradapter.AbstractMethodHandlerAdapter.invokeHandlerMethod(AbstractMethodHandlerAdapter.java:363)
    at org.tinygroup.springmvc.handleradapter.AbstractMethodHandlerAdapter.handle(AbstractMethodHandlerAdapter.java:345)
    at org.tinygroup.springmvc.handleradapter.TinyHandlerAdapterComposite.handle(TinyHandlerAdapterComposite.java:96)
    at org.tinygroup.springmvc.handleradapter.TinyHandlerAdapter.handle(TinyHandlerAdapter.java:78)
    at org.tinygroup.springmvc.tinyprocessor.SpringMvcTinyProcessor.doDispatch(SpringMvcTinyProcessor.java:355)
    at org.tinygroup.springmvc.tinyprocessor.SpringMvcTinyProcessor.doService(SpringMvcTinyProcessor.java:289)
    at org.tinygroup.springmvc.tinyprocessor.SpringMvcTinyProcessor.reallyProcess(SpringMvcTinyProcessor.java:204)

评论 (0)

ccay 创建了任务
ccay 更新了任务
悠然 指派了任务给ballackhui

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Java
1
https://gitee.com/tinyframework/tiny.git
git@gitee.com:tinyframework/tiny.git
tinyframework
tiny
tiny

搜索帮助