Пример #1
0
 @RequestMapping(value = "/all", method = RequestMethod.GET)
 public @ResponseBody Iterable<Project> getAllProjects() {
   System.out.println(projRepository.findAll());
   Iterable<Project> projects = projectService.getAllProjects();
   return projRepository.findAll();
 }