今天用本地tomcat部署maven时出现了:
Unable to convert string “${item.createtime}” to class “java.util.Date” for attribute “value”: Property Editor not registered with the PropertyEditorManager异常错误
我检查了pojo和jsp文件均未发现错误,上网查了资料才明白原因。
注意里面的web-app_2_3.xsd,就是这个引起的,在web-app_2_4.xsd中就不会出现这种问题(这个版本的isELIgnored默认设置为false)。
在不改变web.xml2.5版本的情况下解决办法是:在jsp页面头加:<%@page isELIgnored=“false”%> 问题得以解决。