检查下controller中对应方法上有没有加@ResponseBody注解
@PutMapping(value = "/reg", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@ResponseBody
public ResultData reg(@RequestBody Map map, HttpServletRequest request) throws Exception {
return Service.userinfoReg(map,request);
}