@RequestMapping @ResponseBody

@responsebody indicates that the return result of this method is directly written into the HTTP response body.
Generally , it is used when obtaining data asynchronously. After using @RequestMapping, the return value is usually parsed as a jump path. After adding @responsebody, the return result will not be parsed as Jump path, but write it directly into the HTTP response body. For example, asynchronously obtaining json data and adding @responsebody will directly return json data. Prevent the jump of




@RequestMapping @RequestMapping can either block the jump with @ResponseBody (written in the responsebody), or write it in the response to prevent the jump, and write the response in the equivalent of a jsp page (a temporary generated dynamic jsp page)

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326572365&siteId=291194637