Resilience4j - Can you use annotations like @Retry in a kotlin app without Spring Boot?

317 Views Asked by At

I'm currently implementing retries and circuitbreakers using Resilience4j. Most of the examples online are using Spring Boot online and noticed that @Retry and @CircuitBreaker annotations are being used. However, I was wondering if a similar approach could be used for a kotlin app without Spring MVC or SpringBoot?

Thanks!

1

There are 1 best solutions below

0
On BEST ANSWER

No, annotations only work when you use a framework like Spring Boot, Micronaut or Ratpack