草庐IT

content-wrapper

全部标签

关于 java:Resteasy Content-Type 默认值

ResteasyContent-Typedefaults我正在使用Resteasy编写一个可以返回JSON和XML的应用程序,但可以选择默认为XML。这是我的方法:1234567891011@GET@Path("/content")@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})publicStringcontentListRequestXml(@ContextHttpServletRequestreq,  @ContextHttpServletResponseresponse,@ContextUriInfoin

关于 java:Resteasy Content-Type 默认值

ResteasyContent-Typedefaults我正在使用Resteasy编写一个可以返回JSON和XML的应用程序,但可以选择默认为XML。这是我的方法:1234567891011@GET@Path("/content")@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})publicStringcontentListRequestXml(@ContextHttpServletRequestreq,  @ContextHttpServletResponseresponse,@ContextUriInfoin