Spring Async Uncaught Exception handler
@Async methods can be configured with a custom Executor to log any thrown exceptions. The following code implements this pattern. Any method tagged with @Async will use the Executor returned by the method public Executor getAsyncExecutor(). This returns the HandlingExecutor which takes care of all logging (in this case it just prints the word “CAUGHT!” … Read more