@RequestMapping("queryct") public void queryCosmeticsbytype( Long typeid, HttpServletResponse request, HttpServletResponse response) throws IOException { PrintWriter out = response.getWriter(); List<Map<String, String>> list = mpts.queryCosmeticsbytype(typeid); String json = mapper.toJson(list); out.write(json); out.close(); }