New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to disable RedisAutoConfiguration similar to spring.cloud.bus.enabled=false #5386
Comments
There are various way to disable the |
Ok, |
I did as suggested @donovanmuller - that gets me past the cachemanager issue but now I am get So, it's still looking for Redis. |
@chb0github Unless my memory is failing me, a bean named |
Looking at my debugger right now, the bean it's trying to hydrate is: The only other reference to redis is in our hibernate support. |
As far as I can tell, there's nothing in Spring Data Redis that creates a |
@chb0github Exclude RedisRepositoriesAutoConfiguration.class to resolve "no such bean redisTemplate" problem |
@Stamp1d0 will give that a try. Thanks |
To take advantage of Spring Cloud Bus, we use the Redis starter
spring-cloud-starter-bus-redis
as the bus channel.It is possible to disable the bus via
spring.cloud.bus.enabled=false
when running tests or a local no-deps profile for example. However, it does not seem possible to disableRedisAutoConfiguration
.Given that a Redis instance is not running, the app will startup without error but the
/health
endpoint will complain about Redis beingDown
. This causes issues if you want to selectively enable service discovery for instance. I.e. you want service discovery on but the bus off etc.There should be a way to disable
RedisAutoConfiguration
via something likespring.redis.enabled=false
or something like that.The text was updated successfully, but these errors were encountered: