当struts.devMode设置为true时,html表单数据中有和action属性匹配不上的参数名或参数类型不匹配出现此错
ERROR ParametersInterceptor Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'pickdate' on 'class com.gwl.bos.web.action.NoticebillAction: Error setting expression 'pickdate' with value ['2019-07-10', ]
情形举例:使用EasyUI DateBox往action传值时
jsp文件
<input type="text" class="easyui-datebox" name="pickdate" data-options="required:false, editable:false"/>
IDEA自动根据表生成模型和映射文件时,date类型使用 java.sql.Date,导致类型不匹配出现错误,属性修改为 java.util.Date 即可
import java.util.Date;
public class Noticebill {
private Date pickdate;
...
}