[AGENT][INIT] 修复Agent启动的Bug

This commit is contained in:
zeaslity
2023-03-02 10:17:19 +08:00
parent 32386a1376
commit 50742e3a1a
3 changed files with 12 additions and 4 deletions

View File

@@ -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());
}
/**
* 拦截数据库异常
*