spring mvc 参数校验
摘要:spring mvc中的参数校验 spring mvc 支持jsr-303 Bean验证框架,默认实现是使用的Hibernate validator。在spring mvc中只需要使用@Validated注解在方法参数上即可对参数对象进行校验。校验结果放在BindingResult中,所以每个被校验
阅读全文
posted @ 2018-12-05 00:44
posted @ 2018-12-05 00:44
posted @ 2018-12-03 22:51
posted @ 2017-11-14 21:08
posted @ 2015-03-14 15:38