使用Postman提交表单数据时报错

使用Postman提交表单数据时报错

错误信息如下:

{
"timestamp": 1484638035307,
"status": 415,
"error": "Unsupported Media Type",
"exception": "org.springframework.web.HttpMediaTypeNotSupportedException",
"message": "Unsupported Media Type",
"path": "/merchant/v1/reg"

}

后台代码如下:

使用Postman提交表单数据时报错

问题的所在是因为在:@RequestBody SignLocationEntity signlocation RequestBody注解上

用Postman访问时要做如下处理

使用Postman提交表单数据时报错

如此问题完美解决