由 RedisTemplate 事务 enableTransactionSupport 引发的血案_template not initialized; call afterpropertiesset(-CSDN博客

网站介绍:文章浏览阅读802次。转载自:https://carlzone.blog.csdn.net/article/details/108629864在最近的项目当中因为使用了类似字典表的数据,所以使用的 Spring Farmework 当中的 Cache 抽象,通过 Redis 来做为缓存。因为原有项目当中配置了 Redis,而且项目是基于 Spring Boot 构建的,并没有去除 Redis 的自动依赖(RedisAutoConfiguration)。导致有些 Redis 的有些类是基于项目中自己配置的 RedisTempl_template not initialized; call afterpropertiesset() before using it