通过apache common库获取到完整的出错信息,保存到数据库中,方便排查错误原因
Apache commons lang 这个库提供了很多基本的操作(String、集合、数组等) 可以多去了解一下
org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e)
来源: https://www.oschina.net/code/snippet_2489258_58616