postgresql - 不能在 DBunit 中使用外部表
问题描述
我的项目正在使用 SpringMVC、MyBatis 和 PostgreSql。
在 postgres 中,我有 2 台服务器:sv1、sv2。
我使用以下方法将一个表从 sv2 导入到 sv1:
import foreign schema public limit to (tbl2) from server sv2 into public;
但是,当使用 DBUnit 进行测试时,我无法将数据插入外部表 tbl2。例外是:
错误 org.dbunit.database.DatabaseDataSet - 在 tableMap=org.dbunit.dataset.OrderedTableNameMap 中找不到表 'tbl2'
如何在 DBUnit 中使用外部表?
解决方案
推荐阅读
- terraform - Terraform:将var传递给函数
- java - 在java中编译文件
- delphi - EDoubleFree 错误罕见异常的原因有哪些?
- azure - 使用 ARM 模板部署在 Azure Front Door 自定义域上启用 HTTPS
- python - 哪个是更好的解决方案?(异常处理)
- javascript - 如何从父组件调用子组件方法
- verification - Multiset 仅使用一个元素数组进行验证
- excel - 使用 VBA 密码保护进行保存时出现错误消息“运行时错误‘1004’:对象‘_Workbook’的方法‘SaveAs’失败”
- java - Java Biginteger 在 pow 中的最大值
- kubernetes - 使用 Rancher 设置本地 kubectl