Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ResponseBody
- @RequestMapping(
- method = RequestMethod.GET,
- value="test",
- produces = MediaType.APPLICATION_XML_VALUE
- )
- public ResponseEntity<String>testXML(){
- return ResponseEntity.ok("<xml></xml>); // inside use string creating xml data
- }
Add Comment
Please, Sign In to add comment