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

fix - 在类的static块里取不到static类型的分布式配置值 #314

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

zhaixiaoxiang
Copy link

在first scan的时候就给static的属性赋值,这样在所有的类的static块里也能正确获取到这些static属性的值,如果放到second scan才给static的属性赋值,因为那时所有的类都加载结束了,init()的时候才会执行second scan,那时类的static块也已经执行完了,就会出现static块里取不到相应的值。

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 42.537% when pulling c765999 on bekoma:master into 2ac5c82 on knightliao:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 42.81% when pulling 3f9cf20 on bekoma:master into 2ac5c82 on knightliao:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 42.9% when pulling 98994fc on bekoma:master into 2ac5c82 on knightliao:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+3.6%) to 46.594% when pulling 101c3db on bekoma:master into 2ac5c82 on knightliao:master.

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

Successfully merging this pull request may close these issues.

2 participants