Spring Boot Redis 集成 Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer'
一、原因:redis集群环境没有开启Keyspace notifications

二、解决办法 


@Configuration
public class HttpSessionConfig {

    /**
     *  解决redis集群环境没有开启Keyspace notifications导致的
     *
     *  Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource
     *
     * */
    @Bean
    public static ConfigureRedisAction configureRedisAction() {
        return ConfigureRedisAction.NO_OP;
    }
}

相关文章:

  • 2021-04-14
  • 2021-06-17
  • 2022-01-27
  • 2021-07-18
  • 2021-08-16
  • 2021-04-03
  • 2021-09-25
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案