用javaconfig设置LogFilter的bean,启动成功后用浏览器访问本地8080端口,后端没有打印出 Request--coming。但是浏览器显示的内容跟教程上的内容一致。
后端打印的日志为:
2018-01-10 23:12:40.913 INFO 2336 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2018-01-10 23:12:40.913 INFO 2336 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2018-01-10 23:12:40.941 INFO 2336 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 28 ms