我正在尝试使用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有什么变化吗?
1条答案
按热度按时间yx2lnoni1#
此问题可能已通过https://github.com/PlaytikaOSS/testcontainers-spring-boot/pull/865修复。
总的来说,我建议在这种情况下直接使用TestContainers for Java。