@HystrixCommand(fallbackMethod = “fallback1”,ignoreExceptions = {RuntimeException.class})User getUserByld(String id) {throw new RuntimeException(getUserByld command failed);}User fallback1(String id, Throwable e) {assert “getUserByld command failed”.equals(e. getMessage());}
@HystrixCommand(fallbackMethod = “fallback1”,,catchExceptions = {RuntimeException.class})User getUserByld(String id) {throw new RuntimeException(getUserByld command failed);}User fallback1(String id, Throwable e) {assert “getUserByld command failed”.equals(e. getMessage());}
@HystrixCommandUser getUserByld(String id) {throw new RuntimeException(getUserByld command failed);}User fallback1(String id, Throwable e) {assert “getUserByld command failed”.equals(e. getMessage());}
@HystrixCommand(fallbackMethod = “fallback1”)User getUserByld(String id) {throw new RuntimeException(getUserByld command failed);}User fallback1(String id, Throwable e) {assert “getUserByld command failed”.equals(e. getMessage());}