spring-cloud-netflix icon indicating copy to clipboard operation
spring-cloud-netflix copied to clipboard

When the Client does not have an application.properties file, Server Eureka does not recognize the default name

Open 7zism3 opened this issue 1 year ago • 0 comments

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. image image

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

image image

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.

7zism3 avatar Aug 01 '24 02:08 7zism3