解决SpringMVC经典的乱码问题
在@RequestMapping中加入produces = "text/html;charset=GBK"参数
@ResponseBody
@RequestMapping(value = "/EMPName/{corpId}/{departId}" ,method = RequestMethod.GET, produces = "text/html;charset=GBK")
public String getEMPName(@PathVariable String corpId, @PathVariable String departId){
return recConfirmationService.getUserNameByCorpIdAndDeptarId(corpId,departId);
}