【发布时间】:2021-03-13 20:33:19
【问题描述】:
我需要 H2 DB 的 Gradle h2 依赖项。在 MVN 存储库中,我只看到 testCompile group: 'com.h2database', name: 'h2', version: '1.4.188'. 我读到 testCompile 用于测试,我不需要此依赖项进行测试,我只需要依赖项 \ 用于在我的 Spring Boot 应用程序中创建 H2 DB。我应该只对 H2 使用 testCompile 依赖还是应该有常规的编译依赖?
【问题讨论】:
标签: database spring-boot gradle h2