4
respostas

Erro no Spring Boot Admin

Ao executar o Admin gera este erro:

Caused by: java.net.UnknownHostException: failed to resolve 'DESK-SERGIO.mshome.net' after 2 queries 
    at io.netty.resolver.dns.DnsResolveContext.finishResolve(DnsResolveContext.java:1013) ~[netty-resolver-dns-4.1.58.Final.jar:4.1.58.Final]
    at io.netty.resolver.dns.DnsResolveContext.tryToFinishResolve(DnsResolveContext.java:966) ~[netty-resolver-dns-4.1.58.Final.jar:4.1.58.Final]
    at io.netty.resolver.dns.DnsResolveContext.query(DnsResolveContext.java:414) ~[netty-resolver-dns-4.1.58.Final.jar:4.1.58.Final]
    at io.netty.resolver.dns.DnsResolveContext.onResponse(DnsResolveContext.java:625) ~[netty-resolver-dns-4.1.58.Final.jar:4.1.58.Final]
    at io.netty.resolver.dns.DnsResolveContext.access$400(DnsResolveContext.java:63) ~[netty-resolver-dns-4.1.58.Final.jar:4.1.58.Final]
    at io.netty.resolver.dns.DnsResolveContext$2.operationComplete(DnsResolveContext.java:458) ~[netty-resolver-dns-4.1.58.Final.jar:4.1.58.Final]
    at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578) ~[netty-common-4.1.58.Final.jar:4.1.58.Final]
4 respostas

Oi Sergio,

Provavel que foi algum problema na configuração.

Posta aqui o conteudo do application.properties do projeto server e do projeto client.

application.properties do server

server.port=8081

application.properties do client

para o Spring Boot Admin Server

spring.boot.admin.client.url=http://localhost:8081

Oi Rodrigo, consegui colocar para funcionar. valeu. Só dei um Maven Update Project novamente e funcionou.

tive o mesmo problema, resolvi colocando essa configuração:

spring.boot.admin.client.instance.management-base-url=http://localhost:8080/