I have a method
@Get("xml")
public User getUser()
{
return new User();
}
In this case when calling this method browser is showing null as response. I have also annotated the User
class with @XmlRootElement
Tag.
It is working fine for Json transformation
@Get("json")
public User getUser()
{
return new User();
}
Please help me where I am going wrong