这是我在Java中的第一个API,请记住这一点;)我有Controller.class,现在我正在保留所有方法(稍后我会清理它;) )。至于GET方法完美工作,当我想创建新用户时,PUT方法有问题 - 它不起作用。请帮忙吗?和建议的原因 - 正如我所说的 - 我是新手,当谈到API) 所以这是我controller.class: @Path("/api")
public class Contro
所以,我在我的代码POST方法: @POST
@Path("/send/{userPost}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces("application/json")
public Response sendUser(@PathParam("userPost") String use