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 web和actuatordependencies 生成项目很容易尝试.
你知道原因是什么吗?
谢谢.
执行器将EndpointHandlerMapping路径请求添加到它提供的各个端点.收到请求时,Spring MVC会依次询问每个处理程序映射请求的处理程序,并在提供请求时立即停止.发出请求时会生成日志消息/index.html.没有端点映射到该路径,因此EndpointHandlerMapping返回null并且Spring MVC转移到下一个映射.
| 归档时间: |
|
| 查看次数: |
8563 次 |
| 最近记录: |