@RequestMapping("/json")
public void json(HttpServletResponse response, Pager pager, TruckFee entity) throws IOException{
response.addHeader("Access-Control-Allow-Origin", "*");
response.setHeader("Content-Type", "application/json;charset=UTF-8");
PrintWriter write = response.getWriter();
write.write("{id:100}");
write.flush();
}
转载于:https://www.cnblogs.com/sun-net/p/7489094.html