Wie erstellt der folgende Code eine XML-Antwort ohne Verwendung von JAXBContext und Marshaller?@produces Annotation in RESTful und Java
@GET
@Path("sayHello")
@Produces(MediaType.APPLICATION_XML)
public HelloXML sayHello(@QueryParam("name") String name){
HelloXML helloXML=new HelloXML(name);
return helloXML;
}
Bitte lesen Sie diesen Link. https://jersey.java.net/documentation/latest/message-body-workers.html – Veeram
danke @ShivV. der Inhalt löste meine Zweifel – karthik95