地址:http://www.iteye.com/topic/1066187
使用ibatis的时候,动态的生成列如果使用AutoResultMap会出现问题,ibatis 自身也有缓存,会和上次的cache比较,就要报java.sql.SQLException: Invalid column name错误;因为iBatis自己有 AutoResultMap的cache。
解决办法:使用多个statment或者使用 remapResults=”true” (为了效率他默认的是false)
地址:http://www.iteye.com/topic/1066187
使用ibatis的时候,动态的生成列如果使用AutoResultMap会出现问题,ibatis 自身也有缓存,会和上次的cache比较,就要报java.sql.SQLException: Invalid column name错误;因为iBatis自己有 AutoResultMap的cache。
解决办法: