1

@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.

0 Answers0