Skip to content

support nacos config annotation#3856

Merged
chickenlj merged 2 commits intoalibaba:2.2.xfrom
shiyiyue1102:2.2.x-support-nacos-config-annotation
Sep 26, 2024
Merged

support nacos config annotation#3856
chickenlj merged 2 commits intoalibaba:2.2.xfrom
shiyiyue1102:2.2.x-support-nacos-config-annotation

Conversation

@shiyiyue1102
Copy link
Collaborator

Describe what this PR does / why we need it

support nacos config annotation.
@NacosConfig : apply to filed ,auto apply value from nacos to specific type filed, support primitive type,properties,object ,collections.
@NacosConfigListener: apply to method , auto notify value from nacos to method's paramized type, support primitive type,properties,object ,collections.
@NacosConfigKeyListener: apply to method, auto notify when key changed from properties or yaml config. accpect ConfigChangeItem param.
@NacosConfigKeyListener: apply to method, auto notify when matched keys changed from properties or yaml config. accpect ConfigChangeEvent param.

Copy link
Collaborator

@chickenlj chickenlj left a comment

Choose a reason for hiding this comment

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

LGTM.

@chickenlj chickenlj merged commit d93217f into alibaba:2.2.x Sep 26, 2024
@yuluo-yx
Copy link
Collaborator

hi @shiyiyue1102
There are some problems with this PR submission. Can you fix them when you have time?
#3878 #3876 #3874 #3877

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.

3 participants