alibaba / spring-cloud-alibaba

Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
https://sca.aliyun.com
Apache License 2.0
28k stars 8.34k forks source link

support nacos config annotation #3857

Open shiyiyue1102 opened 2 months ago

shiyiyue1102 commented 2 months ago

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.