RequestMapper注解

注解访问后台不常用记录一下

Posted by czkuo on March 21, 2019

@RequestMapping注解

做用户项目后台请求路径之前不是很常用记录一下

    /**
     * @函数名称:delete
     * @函数描述:单个对象删除,公共API接口
     * @参数与返回说明:
     * @算法描述:
     */
    @PostMapping("/delete/{id}")
    protected ResultDto<Integer> delete(@PathVariable String id) {
        int result = msStripeDictService.deleteByPrimaryKey(id);
        return new ResultDto<Integer>(result);
    }

路径中带有{id},前台不需要指定键值对直接传值即可

 http://localhost:50020/api/msdictitem/delete/100
 

例子