Olá, Estou recebendo o erro no Spring Boot Admin depois de configurar seguindo o guia do site https://codecentric.github.io/spring-boot-admin/2.3.1/
2021-06-15 16:56:48.864 INFO 13376 --- [ main] b.c.f.s.SpringBootAdminApplication : Started SpringBootAdminApplication in 2.001 seconds (JVM running for 2.583)
2021-06-15 16:56:48.892 INFO 13376 --- [nio-8081-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-06-15 16:56:48.892 INFO 13376 --- [nio-8081-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2021-06-15 16:56:48.893 INFO 13376 --- [nio-8081-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
2021-06-15 16:56:49.167 INFO 13376 --- [ctor-http-nio-1] d.c.b.a.server.services.StatusUpdater : Couldn't retrieve status for Instance(id=f5d5bd3d4737, version=0, registration=Registration(name=spring-boot-application, managementUrl=http://DESKTOP-BV92RSI:8080/actuator, healthUrl=http://DESKTOP-BV92RSI:8080/actuator/health, serviceUrl=http://DESKTOP-BV92RSI:8080/, source=http-api), registered=true, statusInfo=StatusInfo(status=UNKNOWN, details={}), statusTimestamp=2021-06-15T19:56:48.990859800Z, info=Info(values={}), endpoints=Endpoints(endpoints={health=Endpoint(id=health, url=http://DESKTOP-BV92RSI:8080/actuator/health)}), buildVersion=null, tags=Tags(values={}))
org.springframework.web.reactive.function.client.WebClientRequestException: failed to resolve 'DESKTOP-BV92RSI' after 2 queries ; nested exception is java.net.UnknownHostException: failed to resolve 'DESKTOP-BV92RSI' after 2 queries
at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:141) ~[spring-webflux-5.3.6.jar:5.3.6]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ Request to GET health [DefaultWebClient]
Stack trace:
at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:141) ~[spring-webflux-5.3.6.jar:5.3.6]
at reactor.core.publisher.MonoErrorSupplied.subscribe(MonoErrorSupplied.java:70) ~[reactor-core-3.4.5.jar:3.4.5]
at reactor.core.publisher.Mono.subscribe(Mono.java:4150) ~[reactor-core-3.4.5.jar:3.4.5]
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onError(FluxOnErrorResume.java:103) ~[reactor-core-3.4.5.jar:3.4.5]
at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:221) ~[reactor-core-3.4.5.jar:3.4.5]
at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:221) ~[reactor-core-3.4.5.jar:3.4.5]
at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:221) ~[reactor-core-3.4.5.jar:3.4.5]
at reactor.core.publisher.MonoNext$NextSubscriber.onError(MonoNext.java:93) ~[reactor-core-3.4.5.jar:3.4.5]
pom.xml aplicação
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>2.3.1</version>
</dependency>
application.properties aplicação
# actuator
management.endpoint.health.show-details=always
management.endpoints.web.exposure.include=*
info.app.name=@project.name@
info.app.description=@project.description@
info.app.version=@project.version@
info.app.encoding=@project.build.sourceEncoding@
info.app.java.version=@java.version@
# Spring Boot Admin Server
spring.boot.admin.client.url=http://localhost:8081
pom.xml Spring Admin
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
<version>2.3.1</version>
</dependency>