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:
Then - after restart I can see only xml response:
Why?
No error in log.
I encounter the exact same issue, after long time investigation, just: delete the folder "templates" and "static" from /src/main/resources
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With