com.jeesuite.gateway.autoconfigure.GatewaySupportConfiguration Maven / Gradle / Ivy
The newest version!
package com.jeesuite.gateway.autoconfigure;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.jeesuite.gateway.endpoint.ActuatorController;
import com.jeesuite.gateway.exception.ReactiveGlobalExceptionHandler;
import com.jeesuite.gateway.router.CustomRouteDefinitionRepository;
@Configuration
public class GatewaySupportConfiguration {
@Bean
public ReactiveGlobalExceptionHandler globalExceptionHandler() {
return new ReactiveGlobalExceptionHandler();
}
@Bean
public CustomRouteDefinitionRepository customRouteDefinitionRepository() {
return new CustomRouteDefinitionRepository();
}
@Bean
public ActuatorController actuatorController() {
return new ActuatorController();
}
}