H5W3
当前位置:H5W3 > 问答 > 正文

求助:put请求传参及接收

$http({ method: ‘PUT’,
data: jsonStr,
ignoreErrors: true,
headers: {‘Accept’: ‘application/json’,
‘Content-Type’: ‘application/json; charset=UTF-8’},
url: KISBPM.URL.putModel(modelMetaData.modelId)})
.success(function (data, status, headers, config) {
$scope.editor.handleEvents({
type: ORYX.CONFIG.EVENT_SAVED
});

后端
@RequestMapping(
value = {“/model/{modelId}/save”},
method = {RequestMethod.PUT}
)
@ResponseStatus(HttpStatus.OK)
public void saveModel(@PathVariable String modelId, @RequestBody MultiValueMap<String, String> values) {

报错:
com.alibaba.fastjson.JSONException: unsupport type interface org.springframework.util.MultiValueMap

回答

白文翻译 不支持 这个类型 org.springframework.util.MultiValueMap

本文地址:H5W3 » 求助:put请求传参及接收

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址