ExceptionUtils.getFullStackTrace
package com.bj58.expandfunc.controllers;public class ExceptionUtils { public static void main(String[] args) { try { int a=1/0; } catch (Exception e) { e.printStackTrace(); String full