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

Blade 未结 2 1205
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条回答
  •  yinyuncan
    yinyuncan (楼主)
    2021-06-20 17:34

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

提交回复