spring boot admin 搭建詳解
1. Spring Boot Admin 定義
Spring Boot Admin 是針對(duì) Spring Boot 的actuator接口進(jìn)行UI美化的接口,可以方便的瀏覽被監(jiān)控的Spring Boot項(xiàng)目的基本信息、詳細(xì)的Health信息、JVM信息、垃圾回收信息、各種配置信息(數(shù)據(jù)源、緩存、命中率等)
2 系統(tǒng)搭建
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
入口函數(shù)需要加入的注解
@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函數(shù)編寫
@SpringBootApplication public class ShirSpringBootApplication { public static void main(String[] args){ SpringApplication.run(ShirSpringBootApplication.class,args); } }
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
redis之基于SpringBoot實(shí)現(xiàn)Redis stream實(shí)時(shí)流事件處理方式
這篇文章主要介紹了redis之基于SpringBoot實(shí)現(xiàn)Redis stream實(shí)時(shí)流事件處理方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2023-06-06Spring遠(yuǎn)程調(diào)用HttpClient/RestTemplate的方法
這篇文章主要介紹了Spring遠(yuǎn)程調(diào)用HttpClient/RestTemplate的方法,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-03-03IntelliJ IDEA中properties文件顯示亂碼問(wèn)題的解決辦法
今天小編就為大家分享一篇關(guān)于IntelliJ IDEA中properties文件顯示亂碼問(wèn)題的解決辦法,小編覺(jué)得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來(lái)看看吧2018-10-10通過(guò)IEAD+Maven快速搭建SSM項(xiàng)目的過(guò)程(Spring + Spring MVC + Mybatis)
這篇文章主要介紹了通過(guò)IEAD+Maven快速搭建SSM項(xiàng)目的過(guò)程(Spring + Spring MVC + Mybatis),本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-01-01Mybatis分頁(yè)插件Pagehelper的PageInfo字段屬性使用及解釋
這篇文章主要介紹了Mybatis分頁(yè)插件Pagehelper的PageInfo字段屬性使用及解釋,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2024-05-05