springcloud中zipkin的搭建
- 2021-01-29 16:57:00
- admin 原创
- 1556
springcloud中zipkin的搭建:
java包引入:
<parent> <artifactId>spring-cloud-demo</artifactId> <groupId>com.imooc</groupId> <version>1.0.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>zipkin-server</artifactId> <dependencies> <dependency> <groupId>io.zipkin.java</groupId> <artifactId>zipkin-server</artifactId> <version>2.8.4</version> </dependency> <dependency> <groupId>io.zipkin.java</groupId> <artifactId>zipkin-autoconfigure-ui</artifactId> <version>2.8.4</version> </dependency> <!-- 高可用 --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass></mainClass> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build>2、application.properties配置
spring.application.name=zipkin-server server.port=62100 spring.main.allow-bean-definition-overriding=true eureka.client.serviceUrl.defaultZone=http://localhost:20000/eureka/ management.metrics.web.server.auto-time-requests=false3、启动文件配置:
/** * Created by 半仙. */ @SpringBootApplication @EnableZipkinServer public class ZipkinApplication { public static void main(String[] args) { new SpringApplicationBuilder(ZipkinApplication.class) .web(WebApplicationType.SERVLET) .run(args); } }4、启动界面如下:
发表评论
文章分类
联系方式
联系人: | 郑州-小万 |
---|---|
电话: | 13803993919 |
Email: | 1027060531@qq.com |
QQ: | 1027060531 |
网址: | www.wanhejia.com |
Update Required
To play the media you will need to either update your browser to a recent version or update your Flash plugin.