Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Eureka App doesn't show dashboard

There is a Eureka Server application:

@EnableEurekaServer
@SpringBootApplication
public class RegistrationModulesServiceApplication {

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

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: enter image description here

Then - after restart I can see only xml response: enter image description here

Why?

No error in log.

like image 303
yazabara Avatar asked Dec 10 '22 14:12

yazabara


2 Answers

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

like image 139
quqtalk Avatar answered Dec 13 '22 02:12

quqtalk


For me, the issue was that I had an empty folder, src/main/resources/templates. When this folder exists, FreeMarkerView cannot see the embedded templates contained in spring-cloud-netflix-eureka-server. I don't remember where this folder originated but I suspect it is in the online sample.

like image 37
Faron Avatar answered Dec 13 '22 04:12

Faron