Merge pull request #15705 from Michaelin007/petstore

https://jira.baeldung.com/browse/BAEL-6758
This commit is contained in:
Maiklins 2024-01-29 23:02:01 +01:00 committed by GitHub
commit cc70defdc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 0 deletions

View File

@ -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";
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 KiB

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Baeldung Pet Store</title>
</head>
<body>
<h1>Welcome Image</h1>
<h6>Pet Store</h6>
<img th:src="@{images/cat.jpg}" alt="cat">
<img th:src="@{cat.jpg}" alt="cat">
</body>
</html>