zoukankan      html  css  js  c++  java
  • Spring boot admin 使用

    1. maven依赖
     
    <dependencies>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-test</artifactId>
    <scope>test</scope>
    </dependency>
    </dependencies>
     
    2. 应用配置文件
    server.port =8090
    spring.application.name=SpringBootAdminWeb
    spring.boot.admin.url=http://localhost:${server.port}
    spring.jackson.serialization.indent_output=true
    endpoints.health.sensitive=false
     
    3. spring boot admin server 注解启动
    @SpringBootApplication
    @EnableAdminServer
    publicclassPaasApplication{
    publicstaticvoid main(String[] args){
    SpringApplication.run(PaasApplication.class, args);
    }
    }
     
    4. 客户端引用
    <dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-starter-client</artifactId>
    <version>1.3.2</version>
    </dependency>
     
    5. 日志操作:
    <dependency>
    <groupId>org.jolokia</groupId>
    <artifactId>jolokia-core</artifactId>
    </dependency>
    <configuration>
    <include resource="org/springframework/boot/logging/logback/base.xml"/>
    <jmxConfigurator/>
    </configuration>
    

     

    6. 参考文档:
     
    http://codecentric.github.io/spring-boot-admin/1.5.0/#getting-started
  • 相关阅读:
    qt 问题及处理
    windows 依赖查看
    java基础知识
    Linux 相关
    OutLook中添加Exchange失败问题
    开源协议简介
    grail开发环境的搭建
    node+mongodb+WP构建的移动社交应用源码 分享
    INotifyPropertyChanged接口的详细说明
    WP8.1开发:后台任务详解(求推荐)
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/6817654.html
Copyright © 2011-2022 走看看