Does Spring Hystrix only work with @Service and @Component?
I had a class that was defined as a @RestController and my HystrixCommand would not fire, the method would execute but not behave as a HystrixCommand. When I made a @Service class and put the HystrixCommand method and fallback into it the HystrixCommand would work properly.
What are the appropriate Spring annotations that can be used with @EnableHystrix?
For now, you described the appropriate places. We have an open issue that mentions support for controllers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With