-
Gist to show how one could load Spring Boot local data via code instead of data.sql or import.sql gist.github.com/jeffsheets/e018277e0ba2257c7d4b6c3c9767b1dd
-
Written as a follow-up to this thread: @sheetsj/1343962654034042881/
-
I like this better than data.sql and import.sql since it handles any JPA auto-generated fields, like id, uuid, createdDate, updatedDate, etc.... (but still only for local or test data)
-
Published this post on Loading Local Data in Spring Boot on the ole blog uncommentedbytes.blogspot.com/2021/01/loading-local-test-data-in-spring-boot.html
-
(and man, I really need to update that 17 yr old blog tech and design, yikes😬😳)