cacheEnabled is true by default
When specifying a default executor type of BATCH, it is not used if cacheEnabled is true, and instead creates a cached executor.
To me this seems like a bug. If they are mutually exclusive, there should just be an ExecutorType.CACHED, because it took me hours to figure this out. I finally dived into the code, not thinking it would be a mybatis code problem. I should have done it earlier, but my claim stands, I consider that a bug.
Comment From: harawata
Hello @TrentonAdams ,
We need the details about the problem you are experiencing. Please provide a test case [1] or small demo project [2]. We basically need to understand both 1) what you expect and 2) what actually happens.
[1] https://github.com/mybatis/mybatis-3/wiki/Unit-Test [2] https://github.com/harawata/mybatis-issues