I use Spring's @Valid
annotation for validate bean's fields which annotated with javax.constraints
annotations.
But I faced a problem when I need to exclude some fields from validation (only for some cases).
I did an investigation didn't found any usefull ways and most of answers were dated as 2010-2011. It is quite surprisingly since this situatuion is so common.
Is there any changes from that times for Spring 4.+? Or maybe anyone can share personal experience how to beat this?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…