webx框架(模仿Spring框架)单元测试程序错误

[img]http://dl.iteye.com/upload/attachment/570731/1631fcc7-df46-30bf-b5a6-6b633022f927.jpg[/img]

麻烦哪位帮我看个问题,sql-map-oracle-home.xml文件中红框部分的配置去掉,DemoDAOTest就能正确运行,加上之后DemoDAO的测试程序无法运行,就会出现如下的错误,是怎么回事
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'demoDao': Injection of resource
fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'oracleBaseDao' defined in file
[D:\work\datasky\common\config\target\classes\META-INF\beans\config\oracle-data-source-config.xml]:
Cannot resolve reference to bean 'oracleSqlMapClient' while setting bean property 'sqlMapClient';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'oracleSqlMapClient' defined in file
[D:\work\datasky\common\config\target\classes\META-INF\beans\config\oracle-data-source-config.xml]:
Invocation of init method failed; nested exception is org.springframework.core.NestedIOException:
Failed to parse config resource: file [D:\work\datasky\common\config\
target\classes\META-INF\ibatis\config\sql-map-oracle-home.xml];
nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.
Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.

Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/select'.
Cause: com.ibatis.sqlmap.client.SqlMapException: There is no result map named java.util.List in this SqlMap.

sqlMap 返回类型映射 成java.util.List


select * from ds_sys_logs


select * from ds_sys_notice

映射对应实体类 用queryFoList就行啦

resultClass="实体类或者实体类别名"

resultMap 改成resultClass=""