欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

springboot整合sa-token中的redis報netty錯誤問題

 更新時間:2024年11月12日 10:08:42   作者:一只牛博  
整合Spring Boot與sa-token-redis-jackson時遇到Netty版本沖突,通過將netty-common升級到與sa-token-redis-jackson兼容的版本4.1.79解決

springboot整合sa-token中的redis報netty錯誤

報錯內(nèi)容

如下所示:

org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: 'void io.netty.util.concurrent.SingleThreadEventExecutor.<init>(io.netty.util.concurrent.EventExecutorGroup, java.util.concurrent.Executor, boolean, java.util.Queue, io.netty.util.concurrent.RejectedExecutionHandler

報錯原因

整合sa-token-redis-jackson

分析報錯

上面可以看到我們本身存在一個netty-common:4.1.31的版本,但是因為sa-token-redis-jackson下存在4.1.79的版本,所以引起的沖突,只要把我們netty-common改為4.1.79版本即可

總結(jié)

以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論