@HystrixCommand
 @RequestMapping("/javainfo")
 public String getJavaInfo(Model model, HttpSession session)
     throws JsonParseException, JsonMappingException, IOException {
   if (session.getAttribute("username") == null) {
     return utils.returnLogin();
   }
   model.addAttribute("vcap_app", utils.getVCAP());
   return "onlinestore/javainfo";
 }
 @HystrixCommand
 @RequestMapping("/menu")
 public String menu(Model model, HttpSession session)
     throws JsonParseException, JsonMappingException, IOException {
   if (session.getAttribute("username") == null) {
     return utils.returnLogin();
   }
   model.addAttribute(
       "order", orderClient.getOrderByUser(session.getAttribute("username").toString()));
   return "onlinestore/menu";
 }
 @HystrixCommand(fallbackMethod = "fallbackAuthUser")
 @RequestMapping("/auth")
 public String authUser(@RequestParam("user") String user, HttpSession session, Model model)
     throws JsonParseException, JsonMappingException, IOException {
   if (session == null || user == null) {
     return utils.returnLogin();
   }
   session.setAttribute("userid", userClient.getUserInfo(user).getId());
   session.setAttribute("username", userClient.getUserInfo(user).getName());
   session.setAttribute("address", userClient.getUserInfo(user).getAddress());
   session.setAttribute("mobile", userClient.getUserInfo(user).getMobile());
   session.setAttribute("company", userClient.getUserInfo(user).getCompany());
   session.setAttribute("cardnumber", userClient.getUserInfo(user).getCardnumber());
   session.setAttribute("fullname", userClient.getUserInfo(user).getFullname());
   System.out.println(session);
   model.addAttribute("prds", serviceClient.getProducts());
   return "onlinestore/index";
 }
 @HystrixCommand
 @RequestMapping("/kill")
 public String kill() {
   System.exit(-1);
   return utils.returnLogin();
 }
 @HystrixCommand
 @RequestMapping("/logout")
 public String logout(HttpSession session) {
   session.invalidate();
   return utils.returnLogin();
 }
 @HystrixCommand
 @RequestMapping("/")
 public String login() {
   return utils.returnLogin();
 }