For simple use of spring boot actuator, see
For simple spring boot actuator use, click here
The latest official version of Spring Boot admin is 1.5.3 incompatible with the new version of Springboot or Spring cloud , and I hope you don't step on the pit.
the new spring-cloud-netflix-core 1.3.7 removes a Zuul automatic configuration class, and Spring boot admin 1.5.3 just refers to this class.
The new version of Spring-cloud-starter-hystrix 1.3.7 removes an AOP class from Hystrix, and Spring boot admin 1.5.3 just refers to this class.
So the pom file is as follows
<Dependency> <groupId>Org.springframework.cloud</groupId> <Artifactid>Spring-cloud-starter-config</Artifactid> <version>1.3.2.RELEASE</version> </Dependency> <Dependency> <groupId>Org.springframework.boot</groupId> <Artifactid>Spring-boot-starter-actuator</Artifactid> <version>1.5.6.RELEASE</version> </Dependency> <Dependency> <groupId>Org.springframework.cloud</groupId> <Artifactid>Spring-cloud-starter-hystrix</Artifactid> <version>1.2.7.RELEASE</version> </Dependency> <Dependency> <groupId>Org.springframework.cloud</groupId> <Artifactid>Spring-cloud-netflix-eureka-client</Artifactid> <version>1.2.7.RELEASE</version> </Dependency> <Dependency> <groupId>Org.springframework.cloud</groupId> <Artifactid>Spring-cloud-netflix-core</Artifactid> <version>1.2.7.RELEASE</version> </Dependency> <Dependency> <groupId>Org.springframework.boot</groupId> <Artifactid>Spring-boot-starter-security</Artifactid> </Dependency> <Dependency> <groupId>Org.springframework.boot</groupId> <Artifactid>Spring-boot-starter-web</Artifactid> </Dependency> <Dependency> <groupId>De.codecentric</groupId> <Artifactid>Spring-boot-admin-server</Artifactid> <version>1.5.3</version> </Dependency> <Dependency> <groupId>De.codecentric</groupId> <Artifactid>Spring-boot-admin-server-ui</Artifactid> <version>1.5.3</version> </Dependency> <Dependency> <groupId>De.codecentric</groupId> <Artifactid>Spring-boot-admin-server-ui-login</Artifactid> <version>1.5.3</version> </Dependency>
Applicaiton.yml
Spring: Boot: admin: url:http://localhost:${server.port}server: port:8018 max-threads:2000 Max-connections:2000eureka: instance: appname:monitor-server Instance-id: ${ Spring.cloud.client.ipaddress}:${server.port} #续约更新时间间隔 lease-renewal-interval-in-seconds:10 # Renewal expiry time lease-expiration-duration-in-seconds:30 client: serviceurl: defaultzone:http://user : [Email protected]:8000/eureka/management:# port:8889 Security: enabled:truesecurity: User: name:admin Password:admin
Directly connected to the Eureka
Browser open: http://localhost:8018/input admin,admin
Spring Boot admin + Spring boot actuator + Erueka Micro Service Monitoring