Skip to content

bucket4j-spring-boot-starter incompatible with testcontainers #396

@nie-suva

Description

@nie-suva

Hello

Don't really know where to place this issues, if its related to bucket4j-spring-boot-starter or spring-boot-testcontainers.
When I setup my project with this starter and the testcontainers starter something getting messed up, so that spring boot isn't able any more to connect to postgresql container created by testcontainers.

java.lang.RuntimeException: Driver org.postgresql.Driver claims to not accept jdbcUrl, jdbc:h2:mem:0f0956c1-7e99-4b0c-a65e-5efe370afaae;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
	at com.zaxxer.hikari.util.DriverDataSource.<init>(DriverDataSource.java:109) ~[HikariCP-5.1.0.jar:na]

I created a mcve to reproduce the issue: https://github.com/[mavarazo/mcve_testcontainers](https://github.com/mavarazo/mcve_testcontainers)
when ch.mav.mcve_testcontainers.LocalApplication from test folder is started.

btw: I used the this guide: https://github.com/testcontainers/java-local-development-workshop/blob/main/step-3-local-development-environment.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions