first use:
create database with name "ecommerce_rest"
then go to src/main/resources/application.properties
and change:
spring.jpa.hibernate.ddl-auto=update
to
spring.jpa.hibernate.ddl-auto=create
then run program to create table in database
then
change it to
spring.jpa.hibernate.ddl-auto=update