Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Urunov/SpringBoot-Thymeleaf-FrontBackend-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

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

    AddBook

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

About

Spring Boot and Thymeleaf Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /