Browse Source

添加spring重试

feature-1.1
wuxicheng 3 years ago
parent
commit
a6a3ba514d
  1. 2
      bnyer-services/bnyer-pay/src/main/java/com/bnyer/pay/BnyerPayApplication.java

2
bnyer-services/bnyer-pay/src/main/java/com/bnyer/pay/BnyerPayApplication.java

@ -6,6 +6,7 @@ import com.bnyer.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableAsync;
/** /**
@ -19,6 +20,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@ComponentScan(basePackages = "com.bnyer") @ComponentScan(basePackages = "com.bnyer")
@SpringBootApplication @SpringBootApplication
@EnableAsync @EnableAsync
@EnableRetry
public class BnyerPayApplication public class BnyerPayApplication
{ {
public static void main(String[] args) public static void main(String[] args)

Loading…
Cancel
Save