rqueue icon indicating copy to clipboard operation
rqueue copied to clipboard

springboot 3.2 can not work

Open chj9 opened this issue 1 year ago • 5 comments

What's not working? image

A clear and concise description of what the bug is.

My code is the same as the example code

What're application dependencies ?

  • Rqueue Version: 3.1.0-RELEASE
  • Spring Boot Version: 3.2.1
  • Spring Messaging Version
  • Spring Data Redis Version
  • Any other spring library dependencies and their version

How to Reproduce (optional)?

  • Steps to reproduce the behaviour
  • A sample reproducible code if possible.

Additional Details (optional)

Add any other context about the problem that would be helpful like OS, Redis, Docker etc

chj9 avatar Feb 26 '24 09:02 chj9

@chj9 could you please share a sample code to reproduce? I'm little busy but I'll get this sorted by next week

sonus21 avatar Mar 01 '24 11:03 sonus21

Also, it seems code is working fine as we can observe other error in https://github.com/sonus21/rqueue/issues/218

sonus21 avatar Mar 01 '24 11:03 sonus21

same like me, when use redisson

Umenezumi avatar Apr 02 '24 04:04 Umenezumi

the issue of coexistence between spring-boot-redisson and spring-data-redis needs to be resolved.

  1. instead of using the automatic configuration provided by redisson-spring-boot-starter, register the RedissonClient manually.
  2. Utilize the automatic configuration provided by the redisson-spring-boot-starter.
@Configuration
@AutoConfigureAfter(RedisAutoConfiguration.class)
public class RedisConfig {
    @Bean
    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory connectionFactory) {
        //connectionFactory: redission
        RedisTemplate<String, Object> redisTemplate = new RedisTemplate<>();
        redisTemplate.setConnectionFactory(connectionFactory);
        redisTemplate.setDefaultSerializer(new GenericJackson2JsonRedisSerializer());
        StringRedisSerializer stringRedisSerializer = new StringRedisSerializer();
        redisTemplate.setKeySerializer(stringRedisSerializer);
        redisTemplate.setHashKeySerializer(stringRedisSerializer);
        return redisTemplate;
    }
}

cxc222 avatar Apr 15 '24 01:04 cxc222

@Umenezumi do you have sample app that fails to boot with Redisson?

sonus21 avatar May 07 '24 19:05 sonus21