Spring Eureka App不显示仪表板 [英] Spring Eureka App doesn't show dashboard
本文介绍了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
这篇关于Spring Eureka App不显示仪表板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文