Java 无法查看Eureka仪表板

Java 无法查看Eureka仪表板,java,spring-boot,netflix-eureka,Java,Spring Boot,Netflix Eureka,我有一个简单的spring启动应用程序,我正试图在其上运行Eureka服务器 这是我的主要申请文件 @SpringBootApplication @EnableEurekaServer public class NetflixEurekaNamingServerApplication { public static void main(String[] args) { SpringApplication.run(NetflixEurekaNamingServerApplic

我有一个简单的spring启动应用程序,我正试图在其上运行Eureka服务器

这是我的主要申请文件

@SpringBootApplication
@EnableEurekaServer
public class NetflixEurekaNamingServerApplication {
    public static void main(String[] args) {
       SpringApplication.run(NetflixEurekaNamingServerApplication.class, args);
    }
}
这是我的应用程序属性文件

spring.application.name=netflix-eureka-naming-server
server.port=8761
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
使用的依赖项

spring boot version : 2.2.4.RELEASE
spring cloud version : Hoxton.SR1
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-server'
但是,当我运行应用程序并访问localhost:8761时,我得到一个白标签页面错误,显示404notfound

当我根据这篇文章改变配置时

然后它开始向我显示一个XML页面,而不是dashbord


有人能帮我吗?

我发现问题后,Eureka仪表板应该可用

只需在application.properties文件中添加这两个属性,它就会工作

spring.freemarker.template-loader-path= classpath:/templates/
spring.freemarker.prefer-file-system-access= false

我使用的是spring boot版本2.2.4.RELEASE和springCloudVersion Hoxton.SR1,它在日志中说了什么?如果你指的是应用程序日志,那么应用程序成功启动,没有任何错误,我可以看到“started eureka server”和“application started”logsI已经检查了这个URL,但它显示了NotFound(未找到)错误。