0
例如兩個有效載荷爲同一端點,在這種情況下爲「/ payment/purchase」映射json請求以糾正方法。有可能與jaxws?兩種json有效載荷到javaxws中的同一端點
payload one
{
name:test,
field1:test1
}
payload two
{
name:test,
field2:test2,
field3:test3
}
@POST
@Consumes({ MediaType.APPLICATION_JSON })
@Path("/payment/purchase")
public Response someMethod(Request1 orderRequest1) {
}
@POST
@Consumes({ MediaType.APPLICATION_JSON })
@Path("/payment/purchase")
public Response someMethod2(Request2 orderRequest2) {
}