diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-06-13 17:27:05 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-06-13 17:27:05 +0530 |
| commit | fa880db84ec4507010a4d29b7cb0308f82553834 (patch) | |
| tree | b68bc07e241384d2d045bb3f585c9cb3b82b691c /spring-boot/07-thymeleaf-common-theme/src/main/java/com/example/spring/HomeController.java | |
| parent | 5ce49a5f1aa9455ebf59c3cbd856043508ca7902 (diff) | |
Added sample project 07-thymeleaf-common-theme
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.java | 13 |
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"; + } +} |
