springMVC常用注解

1、@Controller 用于标记控制器(类) 2、@RequestMapping 用于标记请求地址映射(类/方法),六个属性 1.value 指定请求的实际地址 2.method 指定请求的method类型(get/post/put/delete) 3.consumes 指定处理请求的提交内容类型(Content-Type)(application/json, text/html) 4.pro
相关文章
相关标签/搜索