try {
...
} catch (Exception e) {
log.error( "failed!", e );
}
或者
try {
...
} catch (Exception e) {
log.error( "failed!", e.fillInStackTrace() );
}
try {
...
} catch (Exception e) {
log.error( "failed!", e );
}
或者
try {
...
} catch (Exception e) {
log.error( "failed!", e.fillInStackTrace() );
}