/**
* GET 查询
*
* @return 视图路径
*/
@RequestMapping(value = {"/index", ""})//请求路径,可以为/index或者为空
public String index() {
return "/areas/mgt/views/form/widget/index";
}
/**
* GET 创建
*
* @return 视图路径
*/
@RequestMapping("/create")//普通的具体值
public String create() {
return "/areas/mgt/views/form/widget/create";
}
/**
* GET 编辑
*
* @param id 标识
* @return 视图路径
*/
@RequestMapping("/edit/{id}")//含有变量的一类值,{id}为变量
public String edit(@PathVariable("id") int id) {
return "/areas/mgt/views/form/widget/edit";
}
@RequestMapping(value = "/processList", method = RequestMethod.GET)
@RequestMapping(value = "/create", method = RequestMethod.POST)