Example #1
0
 @RequestMapping(value = "/unfollow", method = RequestMethod.GET)
 @Transactional
 public String unfollowUser(@RequestParam("user") String username, Principal principal) {
   userService.unfollow(principal.getName(), username);
   return "redirect:/";
 }