Advertisement
toujoursseule

Untitled

Nov 8th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. package pe.edu.idat.web;
  2.  
  3. import org.springframework.stereotype.Controller;
  4. import org.springframework.ui.ModelMap;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.bind.annotation.RequestMethod;
  7.  
  8. @Controller
  9. @RequestMapping("hello")
  10. public class HelloController {
  11.  
  12. @RequestMapping(method =RequestMethod.GET)
  13. public String printHello(ModelMap model) {
  14. model.addAttribute("message","Hello Spring MVC Framework!");
  15. return "hello";
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement