【发布时间】:2012-06-26 01:58:41
【问题描述】:
我需要创建 JUnit 测试来处理 DataAccessException,
但是当我尝试时:
throw new DataAccessException();
接收:
Cannot instantiate the type DataAccessException
为什么?我能做些什么? 谢谢。
【问题讨论】:
标签: java database spring hibernate exception