/**
     * 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)
    请求该方法使用的模式,是get还是post
        get与post 参考:http://zljpp.iteye.com/blog/1558061
 
 
 
 
 
 
 
 
 





相关文章:

  • 2022-12-23
  • 2021-09-20
  • 2023-01-14
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2021-06-11
猜你喜欢
  • 2021-08-27
  • 2021-08-07
  • 2021-07-01
  • 2021-05-24
  • 2021-11-07
  • 2021-07-08
  • 2022-12-23
相关资源
相似解决方案