As we saw in the previous sections, Fault Tolerance policies are applied by using annotations. For most use cases, this is enough, but for others, this approach may not be satisfactory because configuration is done at the source code level.
That's the reason why the parameters of MicroProfile Fault Tolerance annotations can be overridden using MicroProfile Config.
The annotation parameters can be overwritten via config properties using the following naming convention: <classname>/<methodname>/<annotation>/<parameter>.
To override maxDuration for @Retry on the doSomething method in the MyService class, set the config property like this: