thymeleaf spring boot dependency for mail

To add Thymeleaf and Spring Boot Mail dependency, follow these steps:

  1. Open your project's build.gradle file if you are using Gradle, or the pom.xml file if you are using Maven.

  2. Add the Thymeleaf dependency by including the following code:

gradle implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'

  1. For Spring Boot Mail, add the mail dependency by including the following code:

gradle implementation 'org.springframework.boot:spring-boot-starter-mail'

  1. After adding these dependencies, you need to synchronize your project to download the required dependencies.

  2. Once the synchronization is complete, you can start using Thymeleaf and Spring Boot Mail in your Spring Boot application.