spring-attic / gs-routing-and-filtering

Routing and Filtering :: Learn how to route and filter requests to a microservice using Netflix Zuul
https://spring.io/guides/gs/routing-and-filtering
67 stars 85 forks source link

it looks like the log system not work. #6

Closed xiaoxiaoliner closed 6 years ago

xiaoxiaoliner commented 6 years ago

i just copy all and run on my computer, but it seems the console did not print the message in the "log.info()" ?

2018-06-23 12:41:54.115 INFO 37636 --- [nio-8091-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet' 2018-06-23 12:41:54.115 INFO 37636 --- [nio-8091-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started 2018-06-23 12:41:54.147 INFO 37636 --- [nio-8091-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 32 ms 2018-06-23 12:41:54.167 INFO 37636 --- [nio-8091-exec-1] o.s.c.n.zuul.web.ZuulHandlerMapping : Mapped URL path [/books/**] onto handler of type [class org.springframework.cloud.netflix.zuul.web.ZuulController]

i have tried many times (http://localhost:8091/books/avaliable) but the console message still doesn't change.


it should prints

"2016-01-19 16:51:14.672 INFO 58807 --- [nio-8080-exec-6] hello.filters.pre.SimpleFilter : GET request to http://localhost:8080/books/available 2016-01-19 16:51:14.672 INFO 58807 --- [nio-8080-exec-6] o.s.c.n.zuul.filters.ProxyRouteLocator : Finding route for path: /books/available"

but it not.