This is a simple poc using spring-retry
- Simple retry with @Retryable
- Simple retry with @Recover
- Simple retry with RetryTemplate, RetryPolicy and BackOffPolicy
- POST - https://localhost:8888/api/retry-test
- Log 3x Executing Command(command=123456)
- Log NullPointerException: Testing @Retryable annotation
- POST - https://localhost:8888/api/recover-test
- Log 3x Executing Command(command=123456)
- Log Recovering Command(command=123456) because of Testing @Recover annotation
Testing BackOffPolicy & RetryPolicy