After using redis do caching, mybatis lazy loading failure

Original use of the EHcache, an error occurs when mybatis lazy loading is no problem, changed after redis, lazy loading to obtain data.

报:Cannot get Configuration as configuration factory was not set

Solution: lazyLoadingEnabled set to false.

image

Guess you like

Origin www.cnblogs.com/huiy/p/10984194.html