[AGENT][INIT] 修复Agent启动的Bug
This commit is contained in:
@@ -5,6 +5,7 @@ import io.wdd.common.beans.response.R;
|
||||
import io.wdd.common.beans.response.ResultStat;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.amqp.rabbit.support.ListenerExecutionFailedException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.dao.DuplicateKeyException;
|
||||
import org.springframework.validation.BindException;
|
||||
@@ -100,12 +101,18 @@ public class GlobalExceptionHandler {
|
||||
@ExceptionHandler(value = {HttpRequestMethodNotSupportedException.class})
|
||||
public void methodNotMatchHandler(HttpRequestMethodNotSupportedException httpRequestMethodNotSupportedException) {
|
||||
|
||||
log.debug(
|
||||
log.error(
|
||||
httpRequestMethodNotSupportedException.getMessage()
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@ExceptionHandler(value = {ListenerExecutionFailedException.class})
|
||||
public void listenerExecutionFailedExceptionHandler(ListenerExecutionFailedException e) {
|
||||
log.error(e.getMessage());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 拦截数据库异常
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user