Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readMe.md introduces the use of retry has problem, one bean has stated several times #285

Closed
tiandankanfeng opened this issue Apr 17, 2022 · 0 comments
Assignees
Milestone

Comments

@tiandankanfeng
Copy link

@Configuration
@EnableRetry
public class Application {
    // problem
    @Bean
    public Service service() {
        return new Service();
    }

}

// problem
@Service
class Service {
    @Retryable(RemoteAccessException.class)
    public void service() {
        // ... do something
    }
    @Recover
    public void recover(RemoteAccessException e) {
       // ... panic
    }
}
@artembilan artembilan added this to the 2.0.0-M1 milestone Apr 18, 2022
@artembilan artembilan self-assigned this Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants