1.??pom.xml 加入
“專業(yè)、務(wù)實(shí)、高效、創(chuàng)新、把客戶的事當(dāng)成自己的事”是我們每一個(gè)人一直以來堅(jiān)持追求的企業(yè)文化。 創(chuàng)新互聯(lián)是您可以信賴的網(wǎng)站建設(shè)服務(wù)商、專業(yè)的互聯(lián)網(wǎng)服務(wù)提供商! 專注于網(wǎng)站制作、成都網(wǎng)站設(shè)計(jì)、軟件開發(fā)、設(shè)計(jì)服務(wù)業(yè)務(wù)。我們始終堅(jiān)持以客戶需求為導(dǎo)向,結(jié)合用戶體驗(yàn)與視覺傳達(dá),提供有針對(duì)性的項(xiàng)目解決方案,提供專業(yè)性的建議,創(chuàng)新互聯(lián)建站將不斷地超越自我,追逐市場(chǎng),引領(lǐng)市場(chǎng)!
???? ???????????????????? ????????io.zipkin.java ????????????zipkin-server ????????????2.12.3 ???????????????????????????? ???????????????????????????? ????????????org.apache.logging.log4j ????log4j-slf4j-impl ???????????????????????????? ????????io.zipkin.java ????????????zipkin-autoconfigure-ui ????????????2.12.3 ???????????????????? ????????io.zipkin.java ????????????zipkin-autoconfigure-collector-kafka ????????????2.12.9 ???????????????????? ????????io.zipkin.java ????????????zipkin-autoconfigure-storage-elasticsearch-http ????????????2.8.4 ????????
2.?application.properties 配置文件
spring.application.name=fhcloud-zipkin-server server.port=8003 #開啟安全認(rèn)證?用戶名和密碼 spring.security.basic.enabled=true spring.security.user.name=admin spring.security.user.password=root #指向注冊(cè)中心 eureka.instance.leaseRenewalIntervalInSeconds=10 eureka.client.registryFetchIntervalSeconds=5 eureka.client.serviceUrl.defaultZone=http://127.0.0.1:8761/eureka/,http://127.0.0.1:8762/eureka/ #actuator配置 management.endpoints.web.exposure.include=* management.endpoints.web.exposure.exclude=env,beans management.security.enabled=false management.metrics.web.server.auto-time-requests=fals
3. 啟動(dòng)類?FHmainApplication.java
package?org.fh; import?org.springframework.boot.SpringApplication; import?org.springframework.boot.autoconfigure.SpringBootApplication; import?org.springframework.cloud.netflix.eureka.EnableEurekaClient; import?zipkin2.server.internal.EnableZipkinServer; /** ?*?說明:?jiǎn)?dòng)類? ?*?www.1b23.com ?*/ @SpringBootApplication @EnableEurekaClient @EnableZipkinServer public?class?FHmainApplication?{ public?static?void?main(String[]?args)?{ SpringApplication.run(FHmainApplication.class,?args); } }