springbootadmin搭建详解

1. Spring Boot Admin 定义

创新互联公司专注为客户提供全方位的互联网综合服务,包含不限于成都网站设计、网站建设、林州网络推广、微信平台小程序开发、林州网络营销、林州企业策划、林州品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;创新互联公司为所有大学生创业者提供林州建站搭建服务,24小时服务热线:13518219792,官方网址:www.cdcxhl.com

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);
  }
  }

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持创新互联。

网页标题:springbootadmin搭建详解
浏览路径:https://www.cdcxhl.com/article30/ghihso.html

成都网站建设公司_创新互联,为您提供网站建设营销型网站建设电子商务企业建站定制开发做网站

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

网站托管运营