Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package bg.jwd.webbanking;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Controller;
- import org.springframework.ui.Model;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestMethod;
- @Controller
- public class BankController {
- @Autowired
- WebBankingService service;
- @RequestMapping(value = "/", method = RequestMethod.GET)
- public String home() {
- return "bank";
- }
- @RequestMapping(value = "/withdraw", method = RequestMethod.POST)
- public String withdraw(Model model) {
- return "withdraw";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement