"没有使用Spring Boot Actuator找到"日志消息的处理程序方法

Zol*_*ter 6 spring-boot spring-boot-actuator

当我包含actuator并启用debug日志消息时,会有大量Did not find handler method for日志消息.

2015-08-14 18:34:25.335 DEBUG 94889 --- [nio-8080-exec-5] o.s.b.a.e.mvc.EndpointHandlerMapping     : Looking up handler method for path /index.html
2015-08-14 18:34:25.336 DEBUG 94889 --- [nio-8080-exec-5] o.s.b.a.e.mvc.EndpointHandlerMapping     : Did not find handler method for [/index.html]
Run Code Online (Sandbox Code Playgroud)

当我删除时,actuator这些日志消息消失.

我尝试过Spring Boot 1.2.5和1.3.0.M3版本,它的工作方式相同.通过spring initializr使用using webactuatordependencies 生成项目很容易尝试.

你知道原因是什么吗?

谢谢.

And*_*son 7

执行器将EndpointHandlerMapping路径请求添加到它提供的各个端点.收到请求时,Spring MVC会依次询问每个处理程序映射请求的处理程序,并在提供请求时立即停止.发出请求时会生成日志消息/index.html.没有端点映射到该路径,因此EndpointHandlerMapping返回null并且Spring MVC转移到下一个映射.