I use the Hystrix-Javanica library to apply the circuit breaker via annotations. I'd like to configure Hystrix with properties defined in the Spring configuration. Since my application uses Spring AOP, I hoped something like this would work:
@HystrixCommand(commandProperties = {
@HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "${cb.requestVolumeThreshold}")
})
public boolean checkWebservice(String id) { ... }
But this fails with bad property value. property name 'circuitBreaker.requestVolumeThreshold'. Expected int value
Any ideas how I can configure Hystrix without hard coding the values?