zoukankan      html  css  js  c++  java
  • actuator监控

    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.hateoas</groupId>
    <artifactId>spring-hateoas</artifactId>
    </dependency>

    @Controller
    @EnableAutoConfiguration
    public class App 
    {
    
        public static void main(String[] args) throws Exception {
            SpringApplication.run(App.class, args);
        }
    }
    

      

    {"links":[
    {"rel":"self","href":"http://127.0.0.1:8080/actuator"},
    {"rel":"health","href":"http://127.0.0.1:8080/health"},
    {"rel":"trace","href":"http://127.0.0.1:8080/trace"},
    {"rel":"configprops","href":"http://127.0.0.1:8080/configprops"},
    {"rel":"mappings","href":"http://127.0.0.1:8080/mappings"},
    {"rel":"env","href":"http://127.0.0.1:8080/env"},
    {"rel":"auditevents","href":"http://127.0.0.1:8080/auditevents"},
    {"rel":"metrics","href":"http://127.0.0.1:8080/metrics"},
    {"rel":"beans","href":"http://127.0.0.1:8080/beans"},
    {"rel":"heapdump","href":"http://127.0.0.1:8080/heapdump"},
    {"rel":"autoconfig","href":"http://127.0.0.1:8080/autoconfig"},
    {"rel":"info","href":"http://127.0.0.1:8080/info"},
    {"rel":"dump","href":"http://127.0.0.1:8080/dump"},
    {"rel":"loggers","href":"http://127.0.0.1:8080/loggers"}]}

     

    management.security.enabled=false

  • 相关阅读:
    杭电1005
    幂运算
    oj题目分类
    js判断手机或Pc端登陆.并跳转到相应的页面
    sessionStorage或localStorage实现注册登录demo
    html5手机端定位
    微信小程序开发基础知识总结
    eCharts.js使用心得
    前端性能优化--图片懒加载(lazyload image)
    19 款仿 Bootstrap 后台管理主题下载,finrUI控件,好用的ui框架
  • 原文地址:https://www.cnblogs.com/ahuo/p/7609900.html
Copyright © 2011-2022 走看看