org.apache.ibatis.executor.ExecutorException: Cannot get Configuration as configuration factory was

今天调试mybatis+redis缓存的问题,总是出现

 org.apache.ibatis.executor.ExecutorException: Cannot get Configuration as configuration factory was not set

的问题,调试了半天,参考了的资料有:

https://stackoverflow.com/questions/38899222/mybatis-intermitent-error-org-apache-ibatis-executor-executorexception-cannot

http://blog.csdn.net/gucapg/article/details/40655423

http://www.mybatis.org/mybatis-3/zh/configuration.html#settings

https://github.com/mybatis/mybatis-3/issues/936

都没有解决我的问题,最终竟然是清空了一下redis的缓存,然后就好了,延迟加载也可以了,配置和普通的配置一样了。我就日了。白白浪费半天时间。

下次调试带缓存的bug,首先清空一下缓存


你可能感兴趣的:(java)