Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
7zism3 opened this issue Jul 31, 2024 · 2 comments

Comments

@7zism3
Copy link

7zism3 commented Jul 31, 2024

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.

@spencergibb
Copy link
Contributor

This is not the right repository for spring cloud Netflix issues

@7zism3
Copy link
Author

7zism3 commented Aug 1, 2024

Oh. Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants