1. Data type layer data dependencies java.time.LocalDate
2.pom.xml add dependencies
<dependency> <groupId>org.thymeleaf.extras</groupId> <artifactId>thymeleaf-extras-java8time</artifactId> </dependency>
3. How date types are displayed in a list (details) in
<td th:text="*{#temporals.format(user.dateOfBirth, 'yyyy-MM-dd')}"></td>