Guest User

Untitled

a guest
Dec 15th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <!DOCTYPE html><html><head><meta charset="utf-8"/>
  2. <title>Home</title></head>
  3. <body><h2>Hello World!!</h2></body>
  4. </html>
  5.  
  6. @Controller
  7. public class MyController {
  8. @RequestMapping("/")
  9. public String home(Model model) {
  10. System.out.println("In MyController!!!");
  11. return "index";
  12. }}
  13.  
  14. @SpringBootApplication
  15. public class MySpringBoot2Application {
  16. public static void main(String[] args) {
  17. SpringApplication.run(MySpringBoot2Application.class, args);
  18. }
  19. }
Add Comment
Please, Sign In to add comment