美文网首页
Redisson与XXL-Job Netty版本冲突问题

Redisson与XXL-Job Netty版本冲突问题

作者: 养一只tom猫 | 来源:发表于2023-05-22 11:51 被阅读0次

最近有个需求学生排队面试的需求,需要用到队列,想来想去自己造轮子不如上框架(毕竟项目中也有很多地方用到了分布式锁),直接引入了Redisson,引入后发现XXL-Job定时任务执行报错了,项目XXL-Job版本用的是2.3.0,Redisson用的是3.12.5


image.png

很明显是版本冲突了
解决

<dependency>
            <groupId>org.redisson</groupId>
            <artifactId>redisson-spring-boot-starter</artifactId>
            <version>3.12.5</version>
            <exclusions>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-common</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-codec</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-buffer</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-transport</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-handler</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

相关文章

网友评论

      本文标题:Redisson与XXL-Job Netty版本冲突问题

      本文链接:https://www.haomeiwen.com/subject/ktxtedtx.html