support annotation + xml 2th level cache

@CacheNamespace + both config

Comment From: harawata

Hello @hsoftxl ,

If you want to use the same cache for both Java and XML mappers, you should use one of the following combinations.

  • @CacheNamespace + <cache-ref />
  • <cache /> + @CacheNamespaceRef

Please see the documentation for the details. https://mybatis.org/mybatis-3/sqlmap-xml.html#cache

Comment From: hsoftxl

@harawata OK