@ResponseBody annotation

@RequestMapping(value = "saveSignChange", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "qqq", notes = "qqq")
@ApiIgnore
@ResponseBody
public String saveSignChange(SignChangeRequest signChangeRequest) throws Exception{

String json = JsonMapper.toDateJSON(baseDetailResponse);
return json;   

}

 

// No need to add @ResponseBody when the page is redirected directly return "redirect:/elevbrand/elevbrandList";

// Return to the page when adding a pop-up prompt, be sure to add @ResponseBody

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325260560&siteId=291194637