当我遇到邮递员的发帖请求时,我在参数中变得无效, 但是当我从应用程序发布数据时,代码可以正常工作。
下面是相同的代码。
public class demoController {
@Context
private HttpServletRequest request;
@Context
private HttpServletResponse response;
@Inject
UpiService service;
@GET
@Path(value = "/start")
public String getData() {
return "UPI Simulator Started";
}
@POST
@Produces(MediaType.APPLICATION_XML)
public Response delegate() throws Exception {
List<String> parameterNamesList = Collections.list(request.getParameterNames());
String params = parameterNamesList.toString();
}