Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为休眠 DAO 编写单元测试,如果我使用 postgres 方言创建 test-applicationContext,那么我是否需要安装 postgres 来运行测试?有没有更好的方法来做到这一点而不必安装数据库来运行测试用例?谢谢
您可以使用也可以作为内存数据库运行的H2数据库。查看此博客以获取快速示例。