下面让我们从0开始搭建springboot admin 服务端与springboot 1.5 springboot 2.x版本的客户端,进行整合从而对项目进行监控。
第一步初始化项目:
第二步:
创建module(admin 服务 1.5client 与2.x client 服务)三个服务进行服务监控
第三步:项目创建完成,引入SpringBoot admin依赖
admin 服务端 pom.xml配置如下:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.admin2</groupId>
<artifactId>admin</arti