Beispiel #1
0
 @RequestMapping
 @ResponseBody
 public List<Province> findProvinces() {
   List<Province> provinces = areaService.findAllProvince();
   for (Province p : provinces) {
     p.setCities(null);
   }
   return provinces;
 }
Beispiel #2
0
 @RequestMapping
 public ModelAndView findAll() {
   ModelAndView mv = new ModelAndView("area/province_list");
   mv.addObject("provinceList", areaService.findAllProvince());
   return mv;
 }