我在属性文件中添加了spring.cache.type = redis,但是它无法启动spring boot应用程序。
我试图删除它,在这种情况下,一切正常,没有任何问题。
但是,如果我将缓存类型设为redis,则会引发异常
Caused by: java.lang.IllegalArgumentException: No cache manager could be auto-configured, check your configuration (caching type is 'REDIS')
at org.springframework.util.Assert.notNull(Assert.java:215)
at org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration$CacheManagerValidator.afterPropertiesSet(CacheAutoConfiguration.java:111)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774)
... 21 common frames omitted