Skip to content

Conversation

GallantKong
Copy link
Contributor

repair the application registerBeanDefinitions read not appropriate configuration

What's the purpose of this PR

repair the application registerBeanDefinitions read not appropriate configuration,cause apollo config wasn't the first configuration in environment during registerBeanDefinitions to postProcessBeanFactory,when spring.cloud.bootstrap.enabled is set to true

I have verified that this repair works in our project

For details, plz see the blog : http://t.csdn.cn/aI7Q1

Which issue(s) this PR fixes:

Fixes # no exists issue

Brief changelog

ApolloApplicationContextInitializer#initialize : When the context has been initialized,also want to add ensureBootstrapPropertyPrecedence processing

…onfiguration,cause apollo config wasn't the first configuration in environment during registerBeanDefinitions to postProcessBeanFactory,when spring.cloud.bootstrap.enabled is set to true
@github-actions
Copy link

github-actions bot commented Nov 13, 2022

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@codecov
Copy link

codecov bot commented Nov 13, 2022

Codecov Report

Merging #3 (d237255) into main (0fef1fd) will decrease coverage by 0.02%.
The diff coverage is 69.23%.

@@             Coverage Diff              @@
##               main       #3      +/-   ##
============================================
- Coverage     67.80%   67.78%   -0.03%     
  Complexity     1163     1163              
============================================
  Files           164      165       +1     
  Lines          5104     5107       +3     
  Branches        557      559       +2     
============================================
+ Hits           3461     3462       +1     
- Misses         1375     1376       +1     
- Partials        268      269       +1     
Impacted Files Coverage Δ
...ring/boot/ApolloApplicationContextInitializer.java 91.52% <66.66%> (-1.46%) ⬇️
...mework/apollo/spring/util/PropertySourcesUtil.java 66.66% <66.66%> (ø)
...apollo/spring/config/PropertySourcesProcessor.java 96.29% <100.00%> (+2.74%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@GallantKong
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@nobodyiam
Copy link
Member

Please also update the CHANGES.md

@nobodyiam nobodyiam added this to the 2.1.0 milestone Nov 13, 2022
@GallantKong
Copy link
Contributor Author

Please also update the CHANGES.md

I have modified,plz check it,thx

Copy link
Member

@nobodyiam nobodyiam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nobodyiam nobodyiam merged commit f6670d5 into apolloconfig:main Nov 15, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants