How do I set the maximum depth out-of-the-top behavior in ehcache3 in spring boot using programmatic configuration?
I want to avoid Max Object Graph Size reached for the object: 840 – error.
The element has the following attributes
maxDepth – Controls how many linked objects can be accessed before the size-of engine takes any action
Let’s go. This property is required.
maxDepthExceededBehavior – Specifies what happens when the maximum depth is exceeded
Resize object graph:
How this is set up in ehcache3 and springboot. Use programmatic configuration.
I didn’t use XML for EHCACHE 3.4 in SpringBoot
The behavior is
CONTINUE. Now, look at the code and it aborts. To get different behavior, you need to customize
the SizeOfEngine service.