-
Notifications
You must be signed in to change notification settings - Fork 477
Closed
Labels
O-sales-engInternal source: Sales EngineeringInternal source: Sales EngineeringP-2Normal priority; secondary taskNormal priority; secondary taskT-missing-infoT-more-examples-needed
Description
Title
Spring txn retry example
Description
Outline
Copying and pasting from the stackoverflow. @bdarnell Would this work and if so add more description or suggest as best practice?
Solved it by adding org.springframework.retry as a dependency (org.springframework.retry:spring-retry:1.2.2.RELEASE), importing the needed annitations
import org.springframework.retry.annotation.EnableRetry
import org.springframework.retry.annotation.Retryable
and replacing
@SpringBootApplication
with
@SpringBootApplication
@EnableRetry
and
@PutMapping("/thing/")
with
@PutMapping("/thing/")
@Retryable
Expected Audience
Developers
Metadata
Metadata
Assignees
Labels
O-sales-engInternal source: Sales EngineeringInternal source: Sales EngineeringP-2Normal priority; secondary taskNormal priority; secondary taskT-missing-infoT-more-examples-needed