I am trying to figure out how to improve the L2 cache support of Hibernate in Spring Boot and we're considering using hibernate.javax.cache.cache_manager as letting Hibernate do the lookup doesn't work as Spring Boot and Hibernate do not use the same ClassLoader.
It looks like this property works and as we're exposing the CacheManager as a bean, specifying the reference is for the best as no additional lookup would be necessary.
I am trying to understand the side effect of setting the property. Does adding the property alone triggers L2 cache or are they additional properties required?
I haven't the property referenced in the doc so it would be nice to clarify that there.