@RequestMapping(value = "", method = GET) public String index(Model model) { List<Map<String, Long>> counts = postService.countPostsByTags(); model.addAttribute("tags", counts); return "tags/index"; }