Closed c409998649 closed 1 year ago
1.nacos-client的native支持,放这个程序是不是不太合适? 2.不能参考dubbo,利用aot自动生成对native支持的相关配置? 3.修改的是nacos -spring-project工程,能否提供专门针对这个工程的测试演示呢
dubbo其实dubbo-native-plugin这个模块也做了reflect-config.json 我想一下单独做个模块来放置这个吧,反射这个东西没法避免,nacos-spring-project的demo我想一下怎么做
Please do not create a Pull Request without creating an issue first.
What is the purpose of the change
让nacos 配置中心 支持springboot 3.0 本地编译支持
Brief changelog
1.原来spring-context-support里面的AbstractAnnotationBeanPostProcessor在spring6里面已经把InstantiationAwareBeanPostProcessorAdapter永久删除掉了
2.针对这种情况情况下对AbstractAnnotationBeanPostProcessor进行重写,把以前继承InstantiationAwareBeanPostProcessorAdapter改为实现InstantiationAwareBeanPostProcessor
3.graalvm提前编译里面nacos因为采用grpc,必须对反射用到的类进行写入native-image的reflect-config.json,还有就是对nacos-client的需要读取配置的文件(nacos_default_setting.properties,nacos-version.txt)这两个文件进行标注 4.因为我针对于nacos-spring-boot-project也进行了改动 5.项目的demo地址 下面是我的测试结果图片 启动图片 请求参数 刷新参数
Verifying this change
2023-05-17
Follow this checklist to help us incorporate your contribution quickly and easily:
[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true
to make sure basic checks pass. Runmvn clean install -DskipITs
to make sure unit-test pass. Runmvn clean test-compile failsafe:integration-test
to make sure integration-test pass.