public void single(HttpServletRequest request, HttpServletResponse response) throws…
- User
public void single(HttpServletRequest request, HttpServletResponse response) throws Exception { String id = request.getParameter("id"); if (id != null && !id.isEmpty()) { // 根据id加载对象 T entity = baseService.get(modelClass, id); if (entity == null) { writeJSON(response, false, SystemConstant.QUERY_BASE_ERROR); return; } // 调用模版方法,在加载之后调用,查询数据字典,下拉框数据等 afterToJsonShow(entity); // 处理结果之后的数据 writeJSON(response, true, SystemConstant.QUERY_BASE_OK, entity); } else { writeJSON(response, false, SystemConstant.QUERY_BASE_ERROR); } }我想把这个方法里处理后返回的数据用log.debug打印出来应该怎么做
- Assistant