Bon*_*cía 10 java spring spring-boot spring-boot-actuator
我正在使用Spring Boot 2 M3执行器.默认情况下,运行状况端点映射到/application/health.
/health?Sop*_*ice 13
在application.properties文件中添加此项以将基本路径设置为"/"
management.endpoints.web.base-path=/
Run Code Online (Sandbox Code Playgroud)
路径现在将是'/ health'
编辑:或者,如果您使用YAML:
management:
endpoints:
web:
base-path: /
Run Code Online (Sandbox Code Playgroud)
请参阅Spring Boot 2.0.0的此文档,
该物业是,
management.context-path
我认为这应该有效,但现在无法验证.
management.context-path=/
| 归档时间: |
|
| 查看次数: |
11809 次 |
| 最近记录: |