codecentric / spring-boot-admin

Admin UI for administration of spring boot applications
Apache License 2.0
12.39k stars 3.08k forks source link

Two applications Mapping #1333

Closed ChenZheOnePiece closed 4 years ago

ChenZheOnePiece commented 4 years ago

Two applications Mapping

at 2.1.6 I adopt applications mapping Get instance information,but in 2.2.0 have two applications mapping What should I do? this is response

<!DOCTYPE html><html><head><base href=http://192.168.70.40:8802/api-admin/ ><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=format-detection content="telephone=no,email=no"><meta name=theme-color content=#42d3a5><link rel="shortcut icon" href=assets/img/favicon.png type=image/png><title>Spring Boot Admin</title><link href=assets/css/chunk-common.2cd84e18.css rel=preload as=style><link href=assets/css/sba-core.80e2ff1d.css rel=preload as=style><link href=assets/js/chunk-common.5a02fd25.js rel=preload as=script><link href=assets/js/chunk-vendors.eff1218e.js rel=preload as=script><link href=assets/js/sba-core.251f58f1.js rel=preload as=script><link href=assets/css/chunk-common.2cd84e18.css rel=stylesheet><link href=assets/css/sba-core.80e2ff1d.css rel=stylesheet></head><body><div id=app></div><script lang=javascript src=sba-settings.js></script><script src=assets/js/chunk-vendors.eff1218e.js></script><script src=assets/js/chunk-common.5a02fd25.js></script><script src=assets/js/sba-core.251f58f1.js></script></body></html>

this is i need

[{"name":"TDF-CLOUD-CONFIG","buildVersion":null,"status":"UP","statusTimestamp":"2019-12-24T08:28:05.051Z","instances":[{"id":"2a4d3066b8b7","version":2,"registration":{"name":"TDF-CLOUD-CONFIG","managementUrl":"http://192.168.70.40:8710/actuator","healthUrl":"http://192.168.70.40:8710/actuator/health","serviceUrl":"http://192.168.70.40:8710/","source":"discovery","metadata":{"management.port":"8710"}},"registered":true,"statusInfo":{"status":"UP","details":{"hystrix":{"status":"UP"},"configServer":{"status":"UP","details":{"repositories":[{"name":"app","profiles":["default"],"label":null}]}},"diskSpace":{"status":"UP","details":{"total":5218103590912,"free":4775631380480,"threshold":10485760}},"ping":{"status":"UP"},"discoveryComposite":{"status":"UP","details":{"discoveryClient":
joshiste commented 4 years ago

Did you set the Accept: application/json header on the request?

ChenZheOnePiece commented 4 years ago

thanks,my question is solve