Browse Source

spring-boot-demo-actuator 完成

pull/1/head
Yangkai.Shen 5 years ago
parent
commit
8c27faabc3
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      spring-boot-demo-actuator/README.md

+ 5
- 1
spring-boot-demo-actuator/README.md View File

@@ -104,7 +104,11 @@ management:
## 端点暴露地址 ## 端点暴露地址


将项目运行起来之后,会在**控制台**里查看所有可以访问的端口信息 将项目运行起来之后,会在**控制台**里查看所有可以访问的端口信息
1. 打开浏览器,访问:http://localhost:8090/sys/actuator/mappings ,输入用户名(xkcoding)密码(123456)即可看到所有的mapping信息
2. 访问:http://localhost:8090/sys/actuator/beans ,输入用户名(xkcoding)密码(123456)即可看到所有 Spring 管理的Bean
3. 其余可访问的路径,参见文档


## 参考 ## 参考


https://docs.spring.io/spring-boot/docs/2.0.5.RELEASE/reference/htmlsingle/#production-ready
- actuator文档:https://docs.spring.io/spring-boot/docs/2.0.5.RELEASE/reference/htmlsingle/#production-ready
- 具体可以访问哪些路径,参考: https://docs.spring.io/spring-boot/docs/2.0.5.RELEASE/reference/htmlsingle/#production-ready-endpoints

Loading…
Cancel
Save