springMVC常用註解

1、@Controller 用於標記控制器(類) 2、@RequestMapping 用於標記請求地址映射(類/方法),六個屬性 1.value 指定請求的實際地址 2.method 指定請求的method類型(get/post/put/delete) 3.consumes 指定處理請求的提交內容類型(Content-Type)(application/json, text/html) 4.pro
相關文章
相關標籤/搜索