@Test public void queryUserTest() throws Exception { User user = myUserService.queryUser(new QueryUserCondition()); LOGGER.info("queryUserTest: " + user); }
@Override @Retryable public User queryUser(QueryUserCondition condition) { outService.remoteCall(); return new User(); }
UserServiceImpl implements MyUserService { @Override @Retryable public User queryUser(QueryUserCondition condition) { outService.remoteCall(); return new User(); } }
UserServiceImpl implements MyUserService { @Override @Retryable public User queryUser(QueryUserCondition condition) { outService.remoteCall(); return new User(); } @Autowired  UserServiceImpl(OutService outService); }
UserServiceImpl implements MyUserService { @Override @Retryable public User queryUser(QueryUserCondition condition) { outService.remoteCall(); return new User(); } @Autowired  UserServiceImpl(OutService outService); @Override @Retryable User queryUser(QueryUserCondition condition); @Override @Retryable(maxAttempts = 2) void twoTimes(); @Override @Retryable void exceptionClass(); @Override @Retryable(maxAttempts = 5, value = AopRuntimeExption.class) void fiveTimes(); }
UserServiceImpl implements MyUserService { @Override @Retryable public User queryUser(QueryUserCondition condition) { outService.remoteCall(); return new User(); } @Autowired  UserServiceImpl(OutService outService); @Override @Retryable User queryUser(QueryUserCondition condition); @Override @Retryable(maxAttempts = 2) void twoTimes(); @Override @Retryable void exceptionClass(); @Override @Retryable(maxAttempts = 5, value = AopRuntimeExption.class) void fiveTimes();  }