@RequestMapping(value = "/get_all_news",method = {RequestMethod.GET, RequestMethod.POST},produces = "application/json; charset=utf-8") @ResponseBody public String get_all_news (){ List<News>list_news =newsService.get_all_news(); return JSON.toJSONString(list_news) ; }
添加回答
举报
0/150
提交
取消