Exception e = new Exception("this is a log"); e.printStackTrace(); 转载于:https://www.cnblogs.com/hjj404/p/9205339.html