
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in datamatica.step.infrastructure.redis.adapter.RedisProgressNotificationAdapter required a single bean, but 2 were found:
- progressRedisTemplate: defined by method 'progressRedisTemplate' in class path resource [datamatica/step/infrastructure/redis/config/RedisConfig.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
@Slf4j
@Service
public class RedisTokenAdapter implements TokenRepository {
private final RedisTemplate<String, String> redisTemplate;
/**
* 명시적 생성자
*
* @param redisTemplate String 기반 RedisTemplate (토큰 저장용)
*/
public RedisTokenAdapter(
@Qualifier("stringRedisTemplate") RedisTemplate<String, String> redisTemplate
) {
this.redisTemplate = redisTemplate;
}
생성자 주입 @Qualifier 로 주입하면 해결!