@RequestMapping(value = "/expense-category/update", method = RequestMethod.POST) public String update( @ModelAttribute("edit") ExpenseCategory expenseCategory, final RedirectAttributes redirectAttributes) { if (expenseCategoryService.edit(expenseCategory) != null) { redirectAttributes.addFlashAttribute("edit", "success"); } else { redirectAttributes.addFlashAttribute("edit", "unsuccess"); } return "redirect:/expense-category-list"; }