代码拉取完成,页面将自动刷新
在使用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)