读书人

请问个ibatis有关问题

发布时间: 2012-10-29 10:03:53 作者: rapoo

请教个ibatis问题
iBatis里有个dao.xml配置文件,是不是只能应用在web层,如果不是的话,那我现在在开发一个基于Eclipse RCP应用的时候,DAO层也用到了dao.xml

但是总有个这样的错误
There is no DAO implementation found for class com.XXX.XXXDAO in any context. If you've registered multiple implementations of this DAO, you must specify the Context ID for the DAO implementationyou're looking for using the getDao(Class iface, String contextId) method.

不知道是什么原因,谢谢各位指点

读书人网 >软件架构设计

热点推荐