Örnek
Şu satırı dahil ederiz
testImplementation "org.testcontainers:testcontainers:1.17.3"testImplementation "org.testcontainers:mariadb:1.17.3"
application-test.yml Dosyası
Örnek
Şöyle yaparız
spring:datasource: driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver url: jdbc:tc:mariadb:10.5:///?TC_DAEMON=true jpa: properties: hibernate: dialect: org.hibernate.dialect.MariaDB103Dialect
Hiç yorum yok:
Yorum Gönder