ibatis There is no statement named XXX in this SqlMap.

实体映射文件未加入到sqlMap-Config.xml文件中。
原因是:框架只读取sqlMap-Config.xml文件,对新建的sqlMap引入文件即使注入bean也不予理睬。将引入文件加入sqlMap-Config.xml就可以解决问题。
把用到xml文件加到sqlMap-Config.xml中引入就可以了

黑色头发:http://heisetoufa.iteye.com/

猜你喜欢

转载自heisetoufa.iteye.com/blog/1090143