application.properties 配置
management.endpoints.web.base-path=/manage
management.endpoints.web.exposure.include=*
直接访问
1、访问路径如下:http://192.168.1.3:8848/nacos/manage
2、这里关注一个 mappings 模块,然后访问 mappings 模块,这个模块保存着 web 的访问路径和对应处理事哪个类哪个方法,用来查看 Nacos 或者其他组件非常方便。
3、然后访问路径:http://192.168.1.3:8848/nacos/manage/mappings
,结果如下:
展开其中的 dispatcherServlets ,然后搜索 /v1/ns/instance
可以发现服务注册这个访问路径对应的处理类是:
这个我们在测试环境中开启这个功能非常方便,就相当于是一个 Swagger2.0 的功能展示。