1

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

前任。

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

另外,继续这个问题,我怎样才能在使用@PathParam 构造的 URL 中将 Date 参数留空?演示:http://localhost:8080/testcreate/ ???? 使其为空或 null 或除特定格式化值 ex 之外的任何内容。

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

0 回答 0