@RequestMapping(value="/index",method=RequestMethod.POST)
@ResponseBody
public List<TArea> index() {
System.out.println("哈哈哈哈哈");
//ModelAndView model = new ModelAndView("forward:/index.jsp");
List<TArea> list = areaService.getAll(TArea.class);
//List<TPhoto> tPhotos = photoService.getAll(TPhoto.class);
//model.addObject("list", list);
//Map<String, Object> maps=new HashMap<>();
//maps.put("tPhotos", tPhotos);
//model.addObject("tPhotos", tPhotos);
//System.out.println(list.size());
//List<User> list = userService.getAll(User.class);
//System.out.println(list.get(0).getName());
return list;
}
ttttt