Jersey/JAX-RS resource method input bean validation

后端 未结 1 1714
囚心锁ツ
囚心锁ツ 2021-01-12 20:30

I am using Jersey/JAX-RS via DropWizard 0.7.1 to expose RESTful service endpoints. I have all of my entity POJOs annotated with both JAX-RS and Hibernate/JSR-303 bean valida

相关标签:
1条回答
  • 2021-01-12 21:25

    Add @Valid before @PathParam to validate with Jersey.

    See https://jersey.java.net/documentation/latest/bean-validation.html#d0e12201

    You may have to do some configuration.

    0 讨论(0)
提交回复
热议问题