@QueryParam + @PathParam的日期参数

时间:2015-07-22 12:45:23

标签: java date jersey query-parameters path-parameter

关于java jersey 如何为Date参数声明@DefaultValue?

离。

@DefaultValue("?????") @QueryParam("dateCreated") Date dateCreated

另外,继续提问 如何在使用@PathParam构造的URL处留空Date参数? 示范:http://localhost:8080/testcreate/ ?????所以它为空或null或除特定格式化值之外的任何其他值 离。

@Path("/testcreate/{date}")
        @GET
        public Response testCreate(@PathParam("date") Date date){}

0 个答案:

没有答案