@RequestMapping("showAlldate") @ResponseBody public String showAlldate(Model model){ List<TrafficEconomyAmapSpeedRawHz> list=otherService.getAll(); model.addAttribute("list",otherService.getAll()); return "jsp/showall.jsp";
}
直接返回
jsp/showall.jsp
删掉
@ResponseBody
因为默认返回字符串,指定了字符串的形式响应