Posts

Es werden Posts vom August, 2017 angezeigt.

Spring Cloud Netflix - Hystrix and properties

My Spring certification preparation are on hold because some trainings are ahead I have to prepare for. One will be Spring Boot withSpring Cloud. I have been working with Spring Boot for 4 years now and am a huge fanboy. Spring Cloud is something I looked into and we use Hystrix in a project but I have been scratching the surface mostly. One thing I learned in my preparation I want to share with you because it took me some hours since I finally found my mistake. On the mentioned project we use Hystrix like it's shown on the Javanica page: @HystrixCommand ( commandProperties = { @HystrixProperty ( name = " execution.isolation.thread.timeoutInMilliseconds " , value = " 500 " ) }) public User getUserById( String id) { return userResource . getUserById(id); } Now I wanted to configure some default properties in my application.yaml. I took the values like the above "execution.isolation.thread.timeoutInM