项目启动报错时,Could not find SQL statement to include with refid 'where-all-condition-sh':
解释:sql配置文件中的顺序错误,“where-all-condition-sh”应该配在查询语句前面,否则由于ibatis用SAX解析的缘故,先解析查询语句时找不到where条件,则会报错。
解决:在xml文件中,将单独的where条件配置select前面。
项目启动报错时,Could not find SQL statement to include with refid 'where-all-condition-sh':
解释:sql配置文件中的顺序错误,“where-all-condition-sh”应该配在查询语句前面,否则由于ibatis用SAX解析的缘故,先解析查询语句时找不到where条件,则会报错。
解决:在xml文件中,将单独的where条件配置select前面。