Can we send an Object as the response of Controller handler method?

Technology CommunityCategory: SpringCan we send an Object as the response of Controller handler method?
VietMX Staff asked 3 years ago

Yes we can, using @ResponseBody annotation. This is how we send JSON or XML based response in restful web services.