Closed knjk04 closed 3 years ago
@knjk04 : In application.properties
the key spring.jpa.hibernate.ddl-auto
is set to validate
. This setting will not remove existing data on bootRun
. Try changing the settings to create-drop
.
Ah, thanks for this!
In
BooksApiApplication
, we have a command line runner that prepopulates the database with some test data. Despite only creating two authors, multiple authors are created (seeSELECT * FROM author;
)