Class AccountController

java.lang.Object
org.mybatis.jpetstore.web.controllers.AccountController

@Controller @RequestMapping("/account") public class AccountController extends Object
The Class AccountController.
  • Constructor Details

    • AccountController

      public AccountController()
  • Method Details

    • signonForm

      @GetMapping({"","/"}) public String signonForm()
      Signon form.
      Returns:
      the string
    • signon

      @PostMapping("/signon") public String signon(@RequestParam("username") String username, @RequestParam("password") String password, javax.servlet.http.HttpSession session, org.springframework.ui.Model model)
      Signon.
      Parameters:
      username - the username
      password - the password
      session - the session
      model - the model
      Returns:
      the string
    • signoff

      @GetMapping("/signoff") public String signoff(javax.servlet.http.HttpSession session)
      Signoff.
      Parameters:
      session - the session
      Returns:
      the string
    • newAccountForm

      @GetMapping("/new") public String newAccountForm(org.springframework.ui.Model model)
      New account form.
      Parameters:
      model - the model
      Returns:
      the string
    • newAccount

      @PostMapping("/new") public String newAccount(@ModelAttribute Account account)
      New account.
      Parameters:
      account - the account
      Returns:
      the string
    • editAccountForm

      @GetMapping("/edit") public String editAccountForm(javax.servlet.http.HttpSession session, org.springframework.ui.Model model)
      Edit account form.
      Parameters:
      session - the session
      model - the model
      Returns:
      the string
    • editAccount

      @PostMapping("/edit") public String editAccount(@ModelAttribute Account account, javax.servlet.http.HttpSession session)
      Edit account.
      Parameters:
      account - the account
      session - the session
      Returns:
      the string