Even though I set the attribute to be @Column(unique=true), I still insert a duplicate entry.
@Column(unique=true)
@Entity public class Customer { @Id @Ge
I was also facing the similar issue but got it resolved.
First, drop the table from Database
drop table Customer;
Stop your spring boot application and launch it again.
This worked for me.