这个注解可以作用在方法上,也可以作用在参数上
演示
user里面有三个属性,
表单只提交了两个属性。缺少了date属性
date没有获取到值因为也没提交这个值。
下面返回的user对象。上面就会拿到
没有返回值的情况
需要方法上提供Map集合
用ModeAttribute修饰这个参数,从Map集合中取出合格对象