diff --git a/spring-web-modules/spring-thymeleaf-5/src/main/java/com/baeldung/thymeleaf/controller/PetController.java b/spring-web-modules/spring-thymeleaf-5/src/main/java/com/baeldung/thymeleaf/controller/PetController.java new file mode 100644 index 0000000000..c2071ac9c7 --- /dev/null +++ b/spring-web-modules/spring-thymeleaf-5/src/main/java/com/baeldung/thymeleaf/controller/PetController.java @@ -0,0 +1,13 @@ +package com.baeldung.thymeleaf.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +public class PetController { + + @RequestMapping("/") + public String home() { + return "index"; + } +} diff --git a/spring-web-modules/spring-thymeleaf-5/src/main/resources/static/cat.jpg b/spring-web-modules/spring-thymeleaf-5/src/main/resources/static/cat.jpg new file mode 100644 index 0000000000..cd92bb4a16 Binary files /dev/null and b/spring-web-modules/spring-thymeleaf-5/src/main/resources/static/cat.jpg differ diff --git a/spring-web-modules/spring-thymeleaf-5/src/main/resources/static/images/cat.jpg b/spring-web-modules/spring-thymeleaf-5/src/main/resources/static/images/cat.jpg new file mode 100644 index 0000000000..cd92bb4a16 Binary files /dev/null and b/spring-web-modules/spring-thymeleaf-5/src/main/resources/static/images/cat.jpg differ diff --git a/spring-web-modules/spring-thymeleaf-5/src/main/resources/template/index.html b/spring-web-modules/spring-thymeleaf-5/src/main/resources/template/index.html new file mode 100644 index 0000000000..7e045e9769 --- /dev/null +++ b/spring-web-modules/spring-thymeleaf-5/src/main/resources/template/index.html @@ -0,0 +1,13 @@ + + + + + Baeldung Pet Store + + +

Welcome Image

+
Pet Store
+ cat + cat + + \ No newline at end of file