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

无法覆盖SpringCloud里的bootstrap.yml关于eureka的配置 #5377

Closed
wordly123 opened this issue Apr 4, 2025 · 2 comments
Closed

无法覆盖SpringCloud里的bootstrap.yml关于eureka的配置 #5377

wordly123 opened this issue Apr 4, 2025 · 2 comments

Comments

@wordly123
Copy link

bootstrap.yml

eureka:
instance:
hostname: ${spring.cloud.client.ipAddress}
instance-id: ${spring.application.name}@${spring.cloud.client.ipAddress}:${server.port}
client:
enabled: false
allow-redirects: false
register-with-eureka: false
fetch-registry: false

大概是这样的一个配置我在apollo里把enabled和register-with-eureka还有 fetch-registry到设置为true后重启了项目,该项目依旧没有注册到eureka里

@nobodyiam
Copy link
Member

apollo.bootstrap.eagerLoad.enabled 配置了吗?3.2.1.3 Spring Boot集成方式(推荐)

@wordly123
Copy link
Author

apollo.bootstrap.eagerLoad.enabled 配置了吗?3.2.1.3 Spring Boot集成方式(推荐)

好的 我尝试一下 如果没问题我将关闭问题

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