Merge branch 'master' into 고객_주문내역

This commit is contained in:
백창훈
2022-03-07 18:54:18 +09:00
committed by GitHub
23 changed files with 382 additions and 76 deletions

View File

@@ -1,8 +1,11 @@
package com.justpickup.customerapigatewayservice;
import com.justpickup.customerapigatewayservice.handler.GlobalExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
@EnableEurekaClient
@@ -12,4 +15,9 @@ public class CustomerApigatewayServiceApplication {
SpringApplication.run(CustomerApigatewayServiceApplication.class, args);
}
@Bean
public ErrorWebExceptionHandler globalExceptionHandler() {
return new GlobalExceptionHandler();
}
}