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

1.@Controller,放在类的上方,使类生效;

2.@RequestMapping,Spring,@Controller,@RequestMapping, @ResponseBody,@RequestParam,指定一个映射,method为访问方式,headers为含有指定请求头

3.

@ResponseBody将返回的信息放入响应头中,
4.@RequestParam,属性有

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

value:指定别名,required:是否必填,默认为true,defalutValue:默认值

上一篇:oracle之sequence详解


下一篇:【LeetCode练习题】Add Two Numbers