1. 程式人生 > >springBoot中引用redis報錯, Consider defining a bean of type 'org.springframework.data.redis.core.RedisTem

springBoot中引用redis報錯, Consider defining a bean of type 'org.springframework.data.redis.core.RedisTem

我們在springboot中經常引用redis,因為springBoot中自帶了許多起步依賴,我們不要給他加入自己的版本號,要不然很容易造成版本號衝突,導致redis引入不進來,報 Consider defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.