Java jsr chain of validation (mutually exclusive)

前端 未结 0 1872
花落未央
花落未央 2021-02-01 05:42

What could be the best way to validate a field in a DTO/POJO with chain of annotated validation rules? For e.g

User {

   @CheckForEmail
   @CheckForRegisteredMob         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题