I this lesson, I would teach you how us to insert data using a form using Thymeleaf. We also see how to display data on a form.
- Create a new Controller file in the controllers package. Call it IndexController. Annotate it with @Controller annotation
- Add the Thymeleaf dependency in the pom.xml file
- Create the html form in the src/main/resources/templates directory
- The structure of the file is as shown below