I try to validate via org.springframework.validation.Validator
.
My Problem: I have the a form-bean which has data beans.
PlayerRegistrationDataBean
-> has: PersonBean
So how do I have to validate the PersonBean
if I do not want to implement the validation everywhere I use PersonBeans
as "sub-beans"?
我不确定我是否知道您要问的问题,但是不会使用适当的注释来注释PersonBean的属性,然后使用@Valid来注释PersonBean本身呢?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.