How to handle Resource validation in REST webservices?

前端 未结 4 1951
悲哀的现实
悲哀的现实 2020-12-24 14:46

I\'m building a REST webservice in Java using Spring, Jersey and Hibernate (JPA).

Now I\'m trying to add support for validation in my resources. JSR-303 (Bean valida

4条回答
  •  遥遥无期
    2020-12-24 15:34

    You can now use Jersey 2.0 for validation of resource arguments via JSR-303/JSR-349.

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

提交回复
热议问题