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

resource/application-profile.yml和apollo配置的优先级问题 #4936

Closed
3 tasks done
timorDevp opened this issue Jul 20, 2023 · 3 comments
Closed
3 tasks done

resource/application-profile.yml和apollo配置的优先级问题 #4936

timorDevp opened this issue Jul 20, 2023 · 3 comments

Comments

@timorDevp
Copy link

timorDevp commented Jul 20, 2023

描述bug

根据springboot官网的解释:https://docs.spring.io/spring-boot/docs/2.3.10.RELEASE/reference/html/spring-boot-features.html#boot-features-external-config,jar包内的application-profile.yml的优先级是高于jar包外的application.properties的,那apollo配置加载优先级也低于jar包内的配置吧?

参考issue(https://github.com/apolloconfig/apollo/issues/4687),升级了apollo版本,但是apollo优先级应该还是低于resource/application-profile.yml

期望
apollo配置如何覆盖jar包内的application-profile.yml 相同key配置呢?

额外的细节和日志

  • 版本:springboot2.5.* apollo2.1.0
  • 配置:
  • 平台和操作系统 linux
@timorDevp
Copy link
Author

apollo的配置可以比config目录下的配置更高吗?(目的是config保存一份配置应急)
期待得到回复,谢谢!

@timorDevp timorDevp changed the title jar包内的resource/application-profile.yml和apollo配置的优先级问题 resource/application-profile.yml和apollo配置的优先级问题 Jul 20, 2023
@nobodyiam
Copy link
Member

apollo 配置设计上优先级是比本地配置文件高的,如果确实有问题的话,可以上传一个样例?

@timorDevp
Copy link
Author

谢谢,问题好像解决了。

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