Page Error:
Background error:
Field error in object ' User ' on field ' birthday ': Rejected value [2013-06-24]; codes [Typemismatch.user.birthday,typemismatch.birthday,typemismatch.java.util.date,typemismatch]; arguments [Org.springframework.context.support.DefaultMessageSourceResolvable:codes [User.birthday,birthday]; arguments []; Default message [birthday]]; Default message [Failed to convert property value of type ' java.lang.String ' to required type ' java.util.Date ' for Propert Y ' birthday '; Nested exception is org.springframework.core.convert.ConversionFailedException:Failed to convert from type Java.lang.String to type java.util.Date for value ' 2013-06-24 '; Nested exception is java.lang.IllegalArgumentException]
Solution: Add @DateTimeFormat to the corresponding entity class attribute (pattern = "YYYY-MM-DD")
Springmvc about the foreground date as an entity class object parameter type conversion error