除了使用 @responsebody 注解之外,
还可以
Map<String,String> cxfMap = new ConcurrentHashMap<String,String>();
cxfMap.put("status", "success");
cxfMap.put("errMsg", "错误信息");
cxfMap.put("url", sb.toString());
response.getWriter().write(JSON.toJSONString(cxfMap));