content: package com.ahasan.zuul;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
  import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
  import org.springframework.context.annotation.Bean;
  
  import com.ahasan.zuul.filters.ErrorFilter;
  import com.ahasan.zuul.filters.PostFilter;
  import com.ahasan.zuul.filters.PreFilter;
  import com.ahasan.zuul.filters.RouteFilter;
  
  @SpringBootApplication
  @EnableZuulProxy
  @EnableEurekaClient
  public class ZuulApiGetWayRunner {
  
  	public static void main(String[] args) {
  		SpringApplication.run(ZuulApiGetWayRunner.class, args);
  		System.out.println("Zuul server is running...");
  	}
  
  	@Bean
  	public PreFilter preFilter() {
  		return new PreFilter();
  	}
  
  	@Bean
  	public PostFilter postFilter() {
  		return new PostFilter();
  	}
  
  	@Bean
  	public ErrorFilter errorFilter() {
  		return new ErrorFilter();
  	}
  
  	@Bean
  	public RouteFilter routeFilter() {
  		return new RouteFilter();
  	}
  }
  