Merge branch 'master' into 고객_주문내역
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user