Springboot @retryable not retrying

前端 未结 6 1225
再見小時候
再見小時候 2021-02-19 11:03

The following code is not retrying. What am I missing?

@EnableRetry
@SpringBootApplication
public class App implements CommandLineRunner
{
    .........
    ....         


        
6条回答
  •  花落未央
    2021-02-19 11:54

    I had exactly the same issue as described in the original question.

    In my case it turned out that the spring-boot-starter-aop dependency was accidentally not included. After adding it to my pom.xml, my @Retryable methods worked as expected.

    Returning values from @Retryable methods works fine for me.

提交回复
热议问题