https://github.com/urunov/springboot-thymeleaf-frontbackend-projects
Spring Boot and Thymeleaf Project
https://github.com/urunov/springboot-thymeleaf-frontbackend-projects
hibernate-orm jpa spring-boot springboot-thymeleaf sql thymeleaf
Last synced: 11 months ago
JSON representation
Spring Boot and Thymeleaf Project
- Host: GitHub
- URL: https://github.com/urunov/springboot-thymeleaf-frontbackend-projects
- Owner: Urunov
- Created: 2020-06-16T09:29:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-26T10:22:20.000Z (almost 6 years ago)
- Last Synced: 2025-05-08T01:16:15.844Z (11 months ago)
- Topics: hibernate-orm, jpa, spring-boot, springboot-thymeleaf, sql, thymeleaf
- Language: JavaScript
- Homepage:
- Size: 9.68 MB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SpringBoot-Thymeleaf-Projects

--------------------------------------------
## Project1- SpringBoot-Thymeleaf-Book-Project-Mapping-NoDB
* We'll start by showing how to display elements of a List in a Thymeleaf page and
how to bind a list of objects as user's inputs in a Thymeleaf form.
* Here, we've added List of Book objects as a model attribute sent to the view, where we'll display it using an HTML table:
Title
Author
No Books Available
Title
Author

#
## Project2-SpringBoot-Thymeleaf-Hibernate-Planet-Project
* Working with Enums in Thymeleaf
* Planet Project
Let's start by adding the Spring Boot starter for Thymeleaf to our pom.xml file:
org.springframework.boot
spring-boot-starter-thymeleaf
RELEASE
* We're going to be working with widgets that have a few choices of color, so let's define our Color enum:
public enum Solor {
MERCURY, VENUS, EARTH, MARS, JUPITER, SATURN, URANUS, NEPTUNE
}
* Now, let's create our Widget class:
public class Planet {
private String name;
private Solar solar;
// Standard getters/setters
}
Reference Materials
1. https://www.baeldung.com/thymeleaf-list
2. https://frontbackend.com/thymeleaf/thymeleaf-tutorial