1. 程式人生 > >spring mvc通過@ResponseBody返回時,ajax接收顯示問號(?)

spring mvc通過@ResponseBody返回時,ajax接收顯示問號(?)

@requestMapping中新增 produces = "text/html;charset=UTF-8"

@RequestMapping(value = "/queryDetail",produces = "text/html;charset=UTF-8")

public String getName(HttpServerletReuest request){

}