【问题标题】:Problem Spring Boot Admin Server not display Applications问题 Spring Boot Admin Server 不显示应用程序
【发布时间】:2018-09-05 14:36:50
【问题描述】:

我正在尝试使用 Spring Boot Admin Server,但在仪表板中我的应用程序未在此处列出。

我做了什么,在我的 pom.xml 中添加了以下依赖项:

<!-- https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-server -->
<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-server</artifactId>
    <version>2.0.2</version>
</dependency>

<!-- https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-server-ui -->
<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-server-ui</artifactId>
    <version>2.0.2</version>
</dependency>

<!-- https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-starter-client -->
<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-starter-client</artifactId>
    <version>2.0.2</version>
</dependency>

在我的 ServidorApplication 类中:

@Configuration
@EnableAdminServer
@SpringBootApplication
@EnableAutoConfiguration(exclude = { JacksonAutoConfiguration.class })
public class ServidorApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServidorApplication.class, args);System.err.println("Sem parametros de inicializacao");
    }

    GsonHttpMessageConverter gsonHttpMessageConverter() {
        return new GsonHttpMessageConverter(new Gson());
    }
}

在我的 application.properties 中:

spring.boot.admin.url=http://localhost:8084
management.security.enabled=false

但是当我打开 Spring Boot Admin 仪表板时,我没有任何应用程序。

Print of my dashboard

有人可以帮我吗?

【问题讨论】:

  • 我发现了问题,问题是我使用的URL:spring.boot.admin.url 而不是:spring.boot.admin.client.url

标签: spring-boot-admin


【解决方案1】:

使用 admin.client.url 代替 admin.url

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-01-07
    • 2019-01-25
    • 1970-01-01
    • 2019-07-25
    • 2020-10-19
    • 2020-01-09
    • 2020-08-28
    • 2020-07-13
    相关资源
    最近更新 更多