-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Spring Boot 中使用自定义keyConverter,DefaultSpringKeyConvertorParser类中当执行parseKeyConvertor方法时applicationContext为null #573
Comments
非常感谢,这个问题确实存在。 但是我想用更简单的方式来修复。这个问题是在jetcache-autoconfigure里面导致的,因此也应该在jetcache-autoconfigure里面修。 我已提交一个修复: 你的PR我就关掉了。 |
现在我用修复后的版本 还是出现上面的问题。且我是用test中的例子测试的
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
环境:
Spring Boot:2.3.9.RELEASE
jetcache:2.6.0
Spring Boot部分配置:
使用默认的keyConverter:fastjson没有问题
当使用自定义myKeyConvertor(此bean已在Spring Context中定义)时,启动应用后,当程序执行到DefaultSpringKeyConvertorParser类中parseKeyConvertor方法时applicationContext为null,报java.lang.NullPointerException,
stack信息如下:
The text was updated successfully, but these errors were encountered: