Redisson Jar package Confict

This problem confused me. Even more exprienced coders in my team couldn’t say why. Here is the problem description:

I pulled the code into my machine and didn’t change anything and I couldn’t run it locally, however, my co-workers could. So I tracked down the problem found the RedisConfig class threw Exeption:


When debugging, this method threw an Exeption.
在这里插入图片描述

So, the TL thought there was something wrong with Redisson dns which could not be accessed.
Therefore, I turned off the windows firewall, used all the way to make it right(I thought), but still not working.

After tons of trouble shooting, finally, I have found the reason: jar package conflict. Here is the tip page, thanks to the guy who posted it:

https://www.freesion.com/article/2273642720/

Solution:

Comment out these dependencies
在这里插入图片描述
And introduce new dependencies

  <!--netty Jar包冲突,保证redisson依赖在jpush maven加载顺序之上,否则jpush会覆盖redisson的netty jar,导致jar冲突-->
        <dependency>
            <groupId>org.redisson</groupId>
            <artifactId>redisson</artifactId>
            <version>3.8.2</version>
        </dependency>
        <dependency>
            <groupId>cn.jpush.api</groupId>
            <artifactId>jpush-client</artifactId>
            <version>3.2.17</version>
        </dependency>

Click “run application”, it went nicely 😃

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值