取消Redis哈希序列化后项目启动异常

Blade 未结 2 1136
93211656
93211656 剑圣 2021-06-17 11:52

一、该问题的重现步骤是什么?

1. 取消Redis序列化后项目启动异常

image.png


二、你期待的结果是什么?实际看到的又是什么?

需要取消序列化

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

Bladex 2.8.0.RELEASE Win10

四、请提供详细的错误堆栈信息,这很重要。

java.lang.IllegalStateException: No CacheResolver specified, and no unique bean of type CacheManager found. Mark one as primary or declare a specific CacheManager to use.

at org.springframework.cache.interceptor.CacheAspectSupport.afterSingletonsInstantiated(CacheAspectSupport.java:224) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:914) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.13.RELEASE.jar:2.2.13.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.13.RELEASE.jar:2.2.13.RELEASE]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405) ~[spring-boot-2.2.13.RELEASE.jar:2.2.13.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.13.RELEASE.jar:2.2.13.RELEASE]

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.2.13.RELEASE.jar:2.2.13.RELEASE]

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:35) [classes/:na]

at org.springblade.auth.AuthApplication.main(AuthApplication.java:20) [classes/:na]

五、若有更多详细信息,请在下面提供。


2条回答
  • 可以配置成json格式

    3(JEWVVI]$~U37[XP7MFA}5.png

    0 讨论(0)
  • 清除redis缓存 启动试试

    0 讨论(0)
提交回复