For this project, I have used https://start.spring.io/ website to create spring project.
I have added these dependencies: Spring Web, MySql Driver, Spring Data Jpa, Thymeleaf.
If your database username and password is different, then you have to change this properties from application.properties file.
I have created a jar file for this project you can use it.
Here is guide commands:
The screens:
mysql look:
ps: I have deleted one item so id!s are not starting from 1.