Issue
I'm using Spring Boot 2.7. When I run a unit test, it insists on creating the Liquibase change log table either twice for what should be an H2 in memory database. I'd like to have Liquibase log the actual JDBC URL being used. I know what the properties say, but I have an application.properties, an application-h2.properties, and sometimes Spring wants to use an in memory database even though a different in memory database is used.
Is there some property like
spring.liquibase.show-effective-jdbc-url=true?
Bonus points for telling me how to log this for regular JPA access.
Thanks, Woodsman
Solution
There is not a flag, but the effective URL is logged at FINE level. There should be a message like Connected to USER@URL
where the value for url is returned from the driver itself, not just what you gave it.
Answered By - Nathan Voxland
Answer Checked By - Mary Flores (JavaFixing Volunteer)