I usually run my spring-boot-test junit sql tests on a Testcontainers setup like this:
spring-boot-test
Testcontainers
spring.datasource.url=jdbc:tc:mariadb:10.5.8:///t