我试图使用TestContainers中的PostgreSQLContainer
(https://github.com/testcontainers/testcontainers-java+https://www.testcontainers.org/)来单元测试我的JPA存储库.
我这样声明我的容器:
private val postgresqlContainer = PostgreSQLContainer("postgres:12-alpine")
However, I encounter the following error, from Intellij IDE:
没有足够的信息来推断类型变量SELF
当我try 启动该服务时,完全错误是:
错误:(26,43)Kotlin:类型推断失败:信息不足 要推断构造函数PostgreSQLContainer<;self中的参数self: PostgreSQLContainer<;self!>;!>;(P0:字符串!)请具体说明 明确地说.