Advertisement
Guest User

Untitled

a guest
Apr 7th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. package bg.jwd.webbanking;
  2.  
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Controller;
  5. import org.springframework.ui.Model;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RequestMethod;
  8.  
  9. @Controller
  10. public class BankController {
  11.  
  12.     @Autowired
  13.     WebBankingService service;
  14.  
  15.     @RequestMapping(value = "/", method = RequestMethod.GET)
  16.     public String home() {
  17.         return "bank";
  18.     }
  19.  
  20.     @RequestMapping(value = "/withdraw", method = RequestMethod.POST)
  21.     public String withdraw(Model model) {
  22.  
  23.         return "withdraw";
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement