Skip to content

Issues about updating to v2.0.0 and Spring Boot 4.0.0Β #697

@SingKS8

Description

@SingKS8

Hi, I am doing the update for my demo project, here is the versions.
Spring Boot: 3.5.8 --> 4.0.0
redis-om-spring: 1.1.0 --> 2.0.0

Two issues I have met.

1. No qualifying bean of type 'org.springframework.data.redis.connection.jedis.JedisConnectionFactory' available:

In Spring Boot 4.0.0, the module "spring-boot-autoconfigure" has been splited into different modules by feateures, so "redis-om-spring" is missing autoconfigure module "spring-boot-data-redis".

2. DataRedisRepositoriesRegistrar.EnableRedisRepositoriesConfiguration issue

Here is the full logs.


Description:

The bean 'xxxRepository', defined in xxx.xxxRepository defined in @EnableRedisRepositories declared on DataRedisRepositoriesRegistrar.EnableRedisRepositoriesConfiguration, could not be registered. A bean with that name has already been defined in xxx.xxxRepository defined in @EnableRedisEnhancedRepositories declared on RedisOmDemoApplication and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

It seems "spring-data-redis" has changed something about repository bean.

I am enabling that overriding configuration to run my demo, so my question is that
"enabling overriding configuration is the requirement for redis-om-spring in future?"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions