1. 重命名异常处理配置类

topo_dev
xueqingkun 9 months ago
parent cdb9472531
commit f8f04529ef

@ -5,6 +5,8 @@ import com.supervision.common.enums.ResultStatusEnum;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestControllerAdvice;
/** /**
* *
@ -14,7 +16,8 @@ import org.springframework.web.bind.annotation.ExceptionHandler;
*/ */
@Slf4j @Slf4j
@Configuration @Configuration
public class ExceptionResponseConfig { @RestControllerAdvice(annotations = RestController.class, basePackages = {"com.supervision.**.controller"})
public class ExceptionHandlerConfig {
/** /**
* *
Loading…
Cancel
Save