How to execute sql script after db schema generation but before application startup

Viewed 7506

I want to generate DB structure from my Java classes

jpa.generate-ddl: true
jpa.ddl-auto: true

Also, I need to run SQL script before application will up because I have @PostConstruct methods where I use these data.

Can you show an example how to do it in Spring Boot?

1 Answers
Related