'Spring Framework Interceptor has no @Order set need workaround

Spring defines a RetryLoadBalancerInterceptor but unfortunately it has no @Order annotation set. This is a problem because the default is Ordered.LOWEST_PRECEDENCE but I have another interceptor that I wish to be called after Spring's (it's a logging interceptor). I might be able to define an AutoConfiguration class that executes after Spring's LoadBalancerAutoConfiguration to ensure my interceptor is set after Spring's, but this seems like overkill. Are there any other workarounds to force my interceptor to the lowest absolute precedence?



Sources

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

Source: Stack Overflow

Solution Source