Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html><html><head><meta charset="utf-8"/>
- <title>Home</title></head>
- <body><h2>Hello World!!</h2></body>
- </html>
- @Controller
- public class MyController {
- @RequestMapping("/")
- public String home(Model model) {
- System.out.println("In MyController!!!");
- return "index";
- }}
- @SpringBootApplication
- public class MySpringBoot2Application {
- public static void main(String[] args) {
- SpringApplication.run(MySpringBoot2Application.class, args);
- }
- }
Add Comment
Please, Sign In to add comment