Spring,@Controller,@RequestMapping, @ResponseBody,@RequestParam

1. @Controller, placed above the class to make the class take effect;

2. @RequestMapping, , specifies a mapping, method is the access method, and headers contains the specified request header

3.

@ResponseBody puts the returned information into the response header,
4.@RequestParam, the attributes are

 

value: specify the alias, required: whether it is required, the default is true, defalutValue: the default value


 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325178240&siteId=291194637