Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

springboot 3.2 can not work #220

Open
chj9 opened this issue Feb 26, 2024 · 5 comments
Open

springboot 3.2 can not work #220

chj9 opened this issue Feb 26, 2024 · 5 comments
Assignees

Comments

@chj9
Copy link

chj9 commented Feb 26, 2024

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

@sonus21
Copy link
Owner

sonus21 commented Mar 1, 2024

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

@sonus21
Copy link
Owner

sonus21 commented Mar 1, 2024

Also, it seems code is working fine as we can observe other error in #218

@Umenezumi
Copy link

same like me, when use redisson

@cxc222
Copy link

cxc222 commented Apr 15, 2024

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;
    }
}

@sonus21
Copy link
Owner

sonus21 commented May 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants