Spring boot 监控Actuator-Admin
2021-03-28 06:28
标签:src dai 服务 ram uos bmc map pen create application.yml文件,注意这里的url一定跑配置到Server的路径,不然找不到,有点类型erkura的注册中心地址.
* 首页
* Spring boot 监控Actuator-Admin 标签:src dai 服务 ram uos bmc map pen create 原文地址:https://www.cnblogs.com/sunxun/p/13634230.htmlserver:
port: 8081
servlet:
context-path: /demo
spring:
application:
# Spring Boot Admin展示的客户端项目名,不设置,会使用自动生成的随机id
name: spring-boot-demo-admin-client
boot:
admin:
client:
# Spring Boot Admin 服务端地址
url: "http://localhost:8080/"
instance:
metadata:
# 客户端端点信息的安全认证信息
user.name: ${spring.security.user.name}
user.password: ${spring.security.user.password}
security:
user:
name: xkcoding
password: 123456
management:
endpoint:
health:
# 端点健康情况,默认值"never",设置为"always"可以显示硬盘使用情况和线程情况
show-details: always
endpoints:
web:
exposure:
# 设置端点暴露的哪些内容,默认["health","info"],设置"*"代表暴露所有可访问的端点
include: "*"
package com.xkcoding.admin.client.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
*
server:
port: 8080
文章标题:Spring boot 监控Actuator-Admin
文章链接:http://soscw.com/essay/68934.html