Hystrix icon indicating copy to clipboard operation
Hystrix copied to clipboard

Parameterize coreSize and maximumSize

Open ysheikh245 opened this issue 7 years ago • 1 comments

I want to parameterize the coreSize and maximumSize values in the @HystrixCommand annotation.

@HystrixProperty(name="coreSize", value = "#{hystrixBean.coreSize}") and load the value from the properties file. I get the following error then java.lang.IllegalArgumentException: bad property value. property name 'coreSize'. Expected int value, actual = #{hystrixBean.coreSize}

Kindly suggest.

ysheikh245 avatar Mar 08 '19 19:03 ysheikh245

Also, tried using the following:

  • @HystrixProperty(name="coreSize", value = "${hystrixBean.coreSize}") where hystrixBean.coreSize=20 in application.properties
  • When I use the @Value annotation and collect in a class member variable, I am getting the value in the variable.

ysheikh245 avatar Mar 08 '19 20:03 ysheikh245