SqlMapClientFactoryBean#buildSqlMapClient reuses SqlMapConfigParser to parse each config location. SqlMapConfigParser#addSqlMapConfigNodelets registers a call to SqlMapConfiguration#finalizeSqlMapConfig which in turn calls wireUpCacheModels each time the end of a document is reached (once per configLocation).
So for each configLocation a call to wireUpCacheModels is made. It registers all CacheModels again and again for the same statements...
The text was updated successfully, but these errors were encountered:
Which version of SqlMapClientFactoryBean are you referring to? This hasn't been part of the Spring Framework core for quite a while... The current Mybatis Spring integration lives at https://github.com/mybatis/spring instead.