1

我想Date使用 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;

如果我声明birthDate为字符串,则此方法有效。

我错过了什么?

4

0 回答 0