@ModelAttribute注解之如何使用postman传递参数

代码实例:

    @GetMapping("/selectOpenList")
    @ApiOperation(value = "公开问卷列表")
    @AnonymityAnnotation(access = true)
    public WebResponse<PageInfo<QuestionnaireVo>> 
                        selectOpenList(@ModelAttribute QuestionnaireDto dto){
       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    }

在postman中传参:

效果:

猜你喜欢

转载自blog.csdn.net/XikYu/article/details/134120591