Reputation: 11
@Repository interface Test extends JpaRepository<EntityName,String> {
@Retry(name="database") Optional findById(Id id);
}
can we implement @Retry on JpaRepository methods ?
if some issue occur with findById() method it will retry 2 times and circuit breaker will execute.
Upvotes: 1
Views: 325