spring-cloud-netflix
spring-cloud-netflix copied to clipboard
When the Client does not have an application.properties file, Server Eureka does not recognize the default name
I am setting up Eureka for the first time: I have 2 Clients registered with 1 Eureka server. 2 Clients only use the application.yml file, and do not use the configuration
eureka:
instance:
appname: xxx
Now the Eureka Server recognizes 2 Clients with the same name.
If I add an empty application.properties file, Now the Eureka Server recognizes 2 Clients with different names, which are the names I declared in the application.yml file
spring:
application:
name: xxx
Please see the attached image for more information
I'm working around this by adding an empty application.properties file. But it's not pretty.