spring 常用注解

来源:互联网 发布:怎么安装oracle数据库 编辑:程序博客网 时间:2024/06/10 05:12

1.@Controller   标识控制层

2.@Service 标识服务层

3.@RequestMapping() 接收请求

4.@Response 返回json 格式

5.@PathVariable 用于接收url 动态参数

eg:@RequestMapping("/list/{contentCategoryId}")  public TaotaoResult getContentList(@PathVariable Long contentCategoryId){return null;    }  



0 0