nacos-group / nacos-spring-project

Nacos ECO Project for Spring Framework
https://nacos.io/
Apache License 2.0
756 stars 311 forks source link

[ISSUE #321] Support spring 6.x #324

Closed SuperZ1999 closed 1 year ago

SuperZ1999 commented 1 year ago

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

适配Spring6.x

Brief changelog

spring-context-support 里面的AbstractAnnotationBeanPostProcessor类继承的InstantiationAwareBeanPostProcessorAdapter类在spring 6.x已经被删除,在nacos-spring-context项目里新建AbstractAnnotationBeanPostProcessor类并改为实现InstantiationAwareBeanPostProcessor,涉及此类的都替换掉新建的AbstractAnnotationBeanPostProcessor

Verifying this change

首先将https://nacos.io/zh-cn/docs/nacos-spring.html里的功能都debug测试一遍,debug时统计没有走到的代码,然后运行以下单元测试即可测试上述没有走到的代码:

Follow this checklist to help us incorporate your contribution quickly and easily: