@Action("/pub/subject/subjectSaveOrUpdate") public void saveComSubjects() throws Exception { comSubjectService.saveOrUpdateComSubject(comSubject); Map<String, Object> map = new HashMap<String, Object>(); map.put("success", true); map.put("message", "操作成功!"); this.sendAjaxResultByJson(JSONObject.fromObject(map).toString()); }