springmvc 返回json格式数据
@Controller@RequestMapping("/sso/admin/monthParameterController")public class MonthParameterController {@Autowiredprivate IOtherParametersService otherParametersService; @RequestMapping("/delfn")public @ResponseBody JSONObject delFn(HttpServletRequest request,HttpServletResponse response, ModelMap modelMap) {String ids = request.getParameter("ids"); JSONObject json = new JSONObject();try {otherParametersService.deleteOtherParameters(ids);json.put("result", true);} catch (SQLException e) { e.printStackTrace();}return json;}}??