title: spring cloud zuul can not works with a simple example code
body: <p>I'm newbie to Spring Cloud. Following the example of <a href="https://spring.io/guides/gs/routing-and-filtering/" rel="nofollow noreferrer">Start Guide</a>. I'm stuck at Zuul example.  </p>
  
  <p>With a request to zuul, my client app not receive any request from zuul and get  405(Method not allowed) to my browser.<br>
  But test without zuul, the client app can response success.  </p>
  
  <p>Simple code as this:<br>
  Zuul Server:  </p>
  
  <pre><code>@EnableZuulProxy
  @SpringBootApplication
  public class MyZuulApp {
  
      public static void main(String[] args) {
          SpringApplication.run(MyZuulApp.class, args);
      }
  
      @Bean
      public SimpleFilter simpleFilter() {
          return new SimpleFilter();
      }
  
  }
  </code></pre>
  
  <p>Configuration:</p>
  
  <pre><code>##Zuul routes. Here for /student path, we are routing to localhost:8090 with extra path after that.
  zuul.routes.book_app.url=http://localhost:8090
  #zuul.routes.book_app=/book_app/**
  
  ##Ribbon is auto integrated with Zuul and for this exercise we are not using that.
  ribbon.eureka.enabled=false
  
  ##Will start the gateway server @8080
  server.port=8083
  
  logging.level.org.springframework.web=DEBUG
  </code></pre>
  
  <p>Client App:  </p>
  
  <pre><code>@RestController
  @SpringBootApplication
  public class BookApp {
  
      @RequestMapping(value = "/available")
      public String available() {
          System.out.println("get abailable - ");
  
          return "Spring in Action";
      }
  
      @RequestMapping(value = "/checked-out")
      public String checkedOut() {
          return "Spring Boot in Action";
      }
  
      public static void main(String[] args) {
          SpringApplication.run(BookApp.class, args);
      }
  }
  </code></pre>
  
  <p>Configuration:</p>
  
  <pre><code>spring.application.name=book_app
  
  server.port=8090
  
  logging.level.org.springframework.web=DEBUG
  </code></pre>
  
  <p>Full code has organized at <a href="https://github.com/LoranceChen/spring-cloud-practice" rel="nofollow noreferrer">Github</a>.<br>
  See my-zuul and book-app for that situation.<br>
  Thanks</p>