I am using H2 database. I want to prefill my database with data.sql. But now I get the exception , that date cannot be converted. I even get a NumberFormatException. I really do not know why.
INSERT INTO Client
VALUES ('10000000','12.10.2011','Petra','Trump');
In my entity I also specified the date the same way.
@DateTimeFormat(pattern = "dd.MM.yyyy")
private LocalDate dateOfBirth;
So I do not understand what could be wrong.
To see how the date is stored in the database I tried to connect to H2 by http://localhost:8080/h2-console but it always said JDBC URL : jdbc:h2:mem:testdb is not correct. So I wonder what I should input there instead. I am just using boot and boot did everything for me.