Skip to content

Redis Spring Bean Conflict #30

@Wenrh2004

Description

@Wenrh2004

APPLICATION FAILED TO START


Description:

Parameter 0 of method authStateCache in com.xkcoding.justauth.autoconfigure.JustAuthStateCacheConfiguration$Redis required a single bean, but 2 were found:
- justAuthRedisCacheTemplate: defined by method 'justAuthRedisCacheTemplate' in class path resource [com/xkcoding/justauth/autoconfigure/JustAuthStateCacheConfiguration$Redis.class]
- stringRedisTemplate: defined by method 'stringRedisTemplate' in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]

This may be due to missing parameter name information

Action:

Consider marking one of the beans as @primary, updating the consumer to accept multiple beans, or using @qualifier to identify the bean that should be consumed

Ensure that your compiler is configured to use the '-parameters' flag.
You may need to update both your build tool settings as well as your IDE.
(See https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#parameter-name-retention)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions