springMVC的数据校验。(后台校验 hibernate validate). 1.引入jar包 2.在相应的实体类中加入注解。 3.在控制层接受参数时。 https://www.cnblogs.com/xiaoxi/p/6164383.html