Playtika.test容器在创建名为‘embeddedClickHouse’的Bean时出错

6l7fqoea  于 2022-10-23  发布在  ClickHouse
关注(0)|答案(1)|浏览(153)

我正在尝试使用playtika.esttainers Embedded-Clickhouse运行测试,这在过去是有效的,但现在我得到了java.lang.IllegalStateException: Failed to load ApplicationContext,这是由Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedClickHouse' defined in class path resource [com/playtika/test/clickhouse/EmbeddedClickHouseBootstrapConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.testcontainers.containers.ClickHouseContainer]: Factory method 'clickHouseContainer' threw exception; nested exception is java.lang.NoClassDefFoundError: net/jpountz/lz4/LZ4Factory引起的。
有谁知道API有什么变化吗?

yx2lnoni

yx2lnoni1#

此问题可能已通过https://github.com/PlaytikaOSS/testcontainers-spring-boot/pull/865修复。
总的来说,我建议在这种情况下直接使用TestContainers for Java。

相关问题