summaryrefslogtreecommitdiff
path: root/spring-boot/07-thymeleaf-common-theme/src/main/java/com/example/spring/HomeController.java
diff options
context:
space:
mode:
Diffstat (limited to 'spring-boot/07-thymeleaf-common-theme/src/main/java/com/example/spring/HomeController.java')
-rw-r--r--spring-boot/07-thymeleaf-common-theme/src/main/java/com/example/spring/HomeController.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/spring-boot/07-thymeleaf-common-theme/src/main/java/com/example/spring/HomeController.java b/spring-boot/07-thymeleaf-common-theme/src/main/java/com/example/spring/HomeController.java
new file mode 100644
index 0000000..d6ead56
--- /dev/null
+++ b/spring-boot/07-thymeleaf-common-theme/src/main/java/com/example/spring/HomeController.java
@@ -0,0 +1,13 @@
+package com.example.spring;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+@Controller
+public class HomeController {
+
+ @RequestMapping("/")
+ public String home() {
+ return "index";
+ }
+}