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

使用wx-java-miniapp-spring-boot-starter:3.8.0必须依赖jedis #1581

Closed
hb0730 opened this issue May 25, 2020 · 7 comments
Closed

使用wx-java-miniapp-spring-boot-starter:3.8.0必须依赖jedis #1581

hb0730 opened this issue May 25, 2020 · 7 comments

Comments

@hb0730
Copy link

hb0730 commented May 25, 2020

简要描述

在版本升级到3.8.0时config-storage中type为redistemplate启动失败

模块版本情况

  • WxJava 模块名:
    wx-java-miniapp-spring-boot-starter
  • WxJava 版本号:
    3.8.0

详细描述

未找到redis.clients.util.Pool

因为项目中使用的是lettuce连接池,并且我的config-storage指定的是Redistemplate

@binarywang
Copy link
Member

这是个问题,稍后修复下

@binarywang
Copy link
Member

看了下,由于代码编译需要,必须得依赖jedis,后续会将jedis作为必须依赖加入。
你可以先手动加入jedis依赖解决此问题。

@cqyisbug
Copy link

哎,jedis 有个版本改了jar包目录,真的是cao了

@hb0730
Copy link
Author

hb0730 commented May 28, 2020

@cqyisbug 好像只能是2.9.1一下的

@gyjx
Copy link

gyjx commented Jul 2, 2020

我今天也遇到这个问题了。并且很奇怪,springboot项目,我使用idae main方法可以运行,但是java -jar 就会报下面异常!这就导致,我本地认为没问题,运维预发环境失败。唉////

Caused by: java.lang.NoClassDefFoundError: redis/clients/util/Pool at com.cd.base.wx.config.WxMpConfig.wxMpInRedisTemplateConfigStorage(WxMpConfig.java:33) at com.cd.base.wx.config.WxMpConfig$$EnhancerBySpringCGLIB$$f19939cb.CGLIB$wxMpInRedisTemplateConfigStorage$1(<generated>) at com.cd.base.wx.config.WxMpConfig$$EnhancerBySpringCGLIB$$f19939cb$$FastClassBySpringCGLIB$$f260a2e7.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) at com.cd.base.wx.config.WxMpConfig$$EnhancerBySpringCGLIB$$f19939cb.wxMpInRedisTemplateConfigStorage(<generated>) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 27 common frames omitted

@hb0730
Copy link
Author

hb0730 commented Jul 2, 2020

@gyjx 3.8.0 暂时只能手动依赖

@binarywang
Copy link
Member

#1647 跟此问题类似

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