Spring boot后台接收前端传过来的form-date类型的参数

1, 传递方式需要为post

Spring boot后台接收前端传过来的form-date类型的参数_第1张图片

2, 后台接收方式如下:

    @RequestMapping(value = "/publish/{eventId}", method = { RequestMethod.POST})
    public ResponseResult toPublish(HttpServletRequest request, @PathVariable final long eventId, String version, final int iosSequence, final int androidSequence) {
   
         return bizContentManageService.toPublish(eventId,version, iosSequence)

    }
或着用String version = request.getParameter("version") 的方式接收


你可能感兴趣的:(01,JAVA,09,springBoot)