BladeX-Biz业务工程启动redis报错

Blade 未结 2 988
602015916
602015916 剑圣 2021-06-18 15:31

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

BladeX-Biz业务工程启动redis报错 修改appName重新启动又可以。 每次都要改下名称,启动成功再改回来



报错信息:


***************************

APPLICATION FAILED TO START

***************************


Description:


Parameter 0 of method bladeRedis in org.springblade.core.redis.config.RedisTemplateConfiguration required a bean of type 'org.springframework.data.redis.core.RedisTemplate' that could not be found.


The injection point has the following annotations:

- @org.springframework.beans.factory.annotation.Autowired(required=true)


The following candidates were found but could not be injected:

- Bean method 'redisTemplate' in 'RedisTemplateConfiguration' not loaded because @ConditionalOnMissingBean (names: redisTemplate; SearchStrategy: all) found beans named redisTemplate



Action:


Consider revisiting the entries above or defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.



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


2.8.1.RELEASE版本  



2条回答
  • 2021-06-18 18:49

    在这个工程根目录执行 mvn clean compile,然后再启动。

    如果还不行的话,把他删减到极限,只剩几个文件并且可重现,把这个工程打包发送到 bladejava@qq.com 然后贴上帖子地址,我们排查看看。

    另外你尽可能描述下你做了哪些改动和集成,这样方便我们判断,否则无从下手

    0 讨论(0)
  • 我猜应该是配置问题 因为你修改应用名称 代表你加载的配置文件可能不一样

    0 讨论(0)
提交回复