@RequestMapping(value = "/mypage/modifytag.do", method = RequestMethod.GET)
  public String modifyTag(
      @RequestParam(value = "tn", required = false) String tn,
      @RequestParam("tagId") int tagId,
      @RequestParam("tagName") String tagName) {
    TagView tagView = tagService.getTag(tagId);
    tagView.setTagName(tagName);
    boolean isTag = tagService.modifyTag(tagView);

    return "redirect:/mypage/managetag.do?tn=" + tn;
  }
  @RequestMapping(value = "/mypage/managetag.do", method = RequestMethod.GET)
  public ModelAndView viewManagetag(@RequestParam(value = "tn", required = false) String tagName) {
    ModelAndView modelAndView = new ModelAndView("/mypage/managetag");

    List<TagView> tagTypeList = tagService.findTagTypes();
    List<TagView> tagList = null;
    if (tagName != null) {
      tagList = tagService.findTags(tagName);
    }
    modelAndView.addObject("tagTypeList", tagTypeList);
    modelAndView.addObject("tagList", tagList);
    modelAndView.addObject("subTitle", "태그관리");
    modelAndView.addObject("mypageType", "managetag");
    return modelAndView;
  }
  @RequestMapping(value = "/mypage/removetag.do", method = RequestMethod.GET)
  public String removeTag(
      @RequestParam(value = "tn", required = false) String tn, @RequestParam("tid") int tagId) {
    boolean isTag = tagService.removeTag(tagId);

    return "redirect:/mypage/managetag.do?tn=" + tn;
  }