Jersey : Is it possible to specify multiple values in @DefaultValue() annotation

后端 未结 1 1975
后悔当初
后悔当初 2021-01-21 22:57

I am playing around with Java API for RESTful Web Services (JAX-RS) , and encountered @DefaultValue annotation in Jersey implementation of JAX-RS.

相关标签:
1条回答
  • 2021-01-21 23:09

    This won't work how you want it to. If the object is type List it will have a single value inserted in the list. The object in the list will be the value of your default value for the list. Check this out Why not try checking if orderBy == null if it does then add your default values to orderBy?

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