spring 中sqlmap-config.xml 对应的xml已经引入,但仍提示错误(什么namespace名称都是正常)

spring 中sqlmap-config.xml文件中对应的xml已经引入,但是调用xml里面的语句的时候,仍提示 There is no statement named XXXX.XXXX in this SqlMap

第1个回答  2017-03-07
Spring粘合iBatis候需要配置iBatisSqlMapConfig.xml 于项目模块想同能管理起普遍单SqlMapConfig.xml显臃肿 喜Spring已经家想切提供能灵配置 configLocation // 单SqlMapConfig.xml configLocations // SqlMapConfig.xml mappingLocations // 自匹配SqlMapConfig.xml 假设现几配置文件别存放同目录结构 classes |----SqlMapConfig.xml |----com.xxx |----aModule | |----A-SqlMapConfig.xml |----BModule |----B-SqlMapConfig.xml 现通Spring配置几SqlMapConfig.xml Java代码 classpath:com/xxx/a/A-SqlMapConfig.xml classpath:com/xxx/b/B-SqlMapConfig.xml Spring解决模块同模块前独立配置sqlMapConfog.xml问追问

你这是从什么地方摘抄下来的。

相似回答