version 3.5.4-SNAPSHOT

XMLMapperBuilder#configurationElement(XNode context)

      cacheRefElement(context.evalNode("cache-ref"));
      cacheElement(context.evalNode("cache"));

The order of the above code is to parse the and then parse the , but there is no code in the cache to determine whether there is a , and the code in the cache will overwrite the currentcache,

currentCache = cache;

which will cause the and to be configured at the same time., then will not take effect, but the documentation does not mention

Comment From: harawata

Hi @dengchengchao ,

So, you added both <cache /> and <cache-ref /> to the same XML mapper? What were you trying to achieve? Reading the documentation of cache-ref, it seems obvious that <cache-ref /> and <cache /> are mutually exclusive.

Comment From: harawata

No response.