i have a situation that i need to communicate using eureka client with external api just after spring boot web application up and before JPA start create database schema and insert data into it from the sql file.
the problem is eureka client start registering to eureka server at smartlifecycle phase 0 , which means after application context has been started and JPA already worked and finish its job.
so how to prevent jpa to start working or delay its work to phase 1 for example ?