Java tutorial
/* * Copyright 2005-2020 Daxia Team All rights reserved. * Support: zhangzhen * License: Daxia Team license */ package com.ling.spring.task; import java.lang.reflect.Method; import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler; public class MyAsyncUncaughtExceptionHandler implements AsyncUncaughtExceptionHandler { @Override public void handleUncaughtException(Throwable arg0, Method arg1, Object... arg2) { System.out.println(arg1.getName() + ":" + arg0.getMessage()); } }