spring boot admin 搭建详解
1. Spring Boot Admin 定义
Spring Boot Admin 是针对 Spring Boot 的actuator接口进行UI美化的接口,可以方便的浏览被监控的Spring Boot项目的基本信息、详细的Health信息、JVM信息、垃圾回收信息、各种配置信息(数据源、缓存、命中率等)
2 系统搭建
server 端搭建
1、gradle中引入一下依赖
compile('de.codecentric:spring-boot-admin-server:1.5.6') compile('de.codecentric:spring-boot-admin-server-ui:1.5.6')
2、配置properties
server.port=8082
入口函数需要加入的注解
@Configuration @EnableAutoConfiguration @EnableAdminServer public class AdminServerApplication { public static void main(String[] args){ SpringApplication.run(AdminServerApplication.class,args); } }
client搭建
1、gradle 需要引入的依赖
compile('org.springframework.boot:spring-boot-starter-actuator') compile('de.codecentric:spring-boot-admin-starter-client:1.5.6')
2、application.yml需要的配置
management: security: enabled: false spring: boot: admin: url: http://localhost:8082
main函数编写
@SpringBootApplication public class ShirSpringBootApplication { public static void main(String[] args){ SpringApplication.run(ShirSpringBootApplication.class,args); } }
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
相关文章
详解java中this.getClass()和super.getClass()的实例
这篇文章主要介绍了详解java中this.getClass()和super.getClass()的实例的相关资料,需要的朋友可以参考下2017-08-08Java class文件格式之访问标志信息_动力节点Java学院整理
access_flags 描述的是当前类(或者接口)的访问修饰符, 如public, private等, 此外, 这里面还存在一个标志位, 标志当前的额这个class描述的是类, 还是接口2017-06-06
最新评论