error: No validator could be found for type: java.time.LocalDate

后端 未结 3 620
轮回少年
轮回少年 2020-12-31 08:35

I\'m working on a project that uses bean validation (Hibernate Validator 5.1.3.Final). My bean has a attribute with the @Past annotation.

@Past(         


        
3条回答
  •  攒了一身酷
    2020-12-31 08:59

    There is a @Past annotation in the javax.validation.constraints (validation-api-2.0.1.Final)

    And it works pretty well for java.time.LocalDate

提交回复
热议问题