把e.printStackTrace的堆栈信息打印在log.error()中 不要这样写: log.error(e);这样只是简单的记录下错误的类型,不能精确出错误出错在哪行 要写成:log.error(e.toString(),e);