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

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!



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Robert Winkler