1. Spring Boot Admin definition
Spring Boot Admin is an interface that beautifies the actuator interface of Spring Boot. It can easily browse the basic information, detailed health information, JVM information, garbage collection information, various configuration information (data source, cache, hit rate, etc.) of the monitored Spring Boot project.
2 System construction
Server side construction
1. Introduce dependencies in gradle
compile('de.codecentric:spring-boot-admin-server:1.5.6') compile('de.codecentric:spring-boot-admin-server-ui:1.5.6') 2. Configure properties
server.port=8082
Annotations that need to be added to the entry function
@Configuration @EnableAutoConfiguration @EnableAdminServerpublic class AdminServerApplication {public static void main(String[] args){ SpringApplication.run(AdminServerApplication.class,args); }} Client-built
1. Dependencies that gradle needs to be introduced
compile('org.springframework.boot:spring-boot-starter-actuator')compile('de.codecentric:spring-boot-admin-starter-client:1.5.6') 2. Configuration required by application.yml
management: security: enabled: falsespring: boot: admin: url: http://localhost:8082
Main function writing
@SpringBootApplication public class ShirSpringBootApplication { public static void main(String[] args){ SpringApplication.run(ShirSpringBootApplication.class,args); } }The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.