Merge pull request #15705 from Michaelin007/petstore
https://jira.baeldung.com/browse/BAEL-6758
This commit is contained in:
		
						commit
						cc70defdc5
					
				| @ -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 | 
| @ -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> | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user