关于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){}