Spring Eureka App不显示仪表板

问题描述:

有一个Eureka Server应用程序:

There is a Eureka Server application:

@EnableEurekaServer
@SpringBootApplication
public class RegistrationModulesServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(RegistrationModulesServiceApplication.class, args);
    }
}

使用applicaton.yml配置(默认设置):

With applicaton.yml config (be default):

eureka:
  instance:
    hostname: localhost
  client: 
    registerWithEureka: false
    fetchRegistry: false

server:
  port: 1111  

在第一次运行时-我看到了带有状态的仪表板. 就像在文档中一样:

On the first run - I saw dashboard with statuses. Like in documentation:

然后-重新启动后,我只能看到xml响应:

Then - after restart I can see only xml response:

为什么?

日志中没有错误.

经过长时间的调查,我遇到了完全相同的问题,只是: 从/src/main/resources删除文件夹"templates"和"static"

I encounter the exact same issue, after long time investigation, just: delete the folder "templates" and "static" from /src/main/resources