【发布时间】:2020-04-02 00:10:56
【问题描述】:
当我只想使用 h2 memory db 执行单元测试并在 maven 案例中使用这样的定义时:
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>test</scope>
</dependency>
应用程序运行时我不需要 h2
用于此目的的 gradle 类比是什么?
【问题讨论】:
标签: spring-boot maven unit-testing gradle h2