Java CXR RS:无法在POST调用中以参数形式发送日期

Java CXR RS:无法在POST调用中以参数形式发送日期,java,rest,cxfrs,Java,Rest,Cxfrs,我想使用CXF接收日期参数 以下代码适用于CXF 2.6.0,但不适用于CXF 3.0.0: @POST @Path("/getPlayers") @Produces("application/json") public List<Player> getPlayers(@FormParam("birthDate") Date birthDate) throws Exception; 如果我将生日声明为字符串,则此操作有效 我遗漏了什么?添加了对您想要实现的目标的描述,以及为什么您希

我想使用CXF接收日期参数

以下代码适用于CXF 2.6.0,但不适用于CXF 3.0.0:

@POST
@Path("/getPlayers")
@Produces("application/json")
public List<Player> getPlayers(@FormParam("birthDate") Date birthDate) throws Exception;
如果我将生日声明为字符串,则此操作有效


我遗漏了什么?

添加了对您想要实现的目标的描述,以及为什么您希望代码在实际代码之前工作,以便读者能够关注代码的相关部分。