页面:
<form>
<input type="text" name="firstname">
<input type="text" name="lastname">
</body>
数据库:
create table test(firstname varchar(10));
后台:
TEST test = this.getModel(TEST.class,"");
这样接受数据就会报:The model attribute lastname is not exists.
TEST test = this.getModel(TEST.class,"",true);
这样做就不会报错,而且动态映射存在的数据.
看源码:
有没有恍然大悟的感觉,感谢博客主人的分享。嘿嘿 这个博客主人还是转载小猪的。哈哈