-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
nacos不支持spring native #9085
Comments
解决了吗?好像还是报错。 |
还没解决 |
nacos-config,包括relfections根据包路径扫描类在native模式下不支持 |
|
同样遇到这个问题,@NacosInjected 无效 |
@i will solve it@ |
问题
spring native 打包后@NacosInjected没有进行注入,导致产生NullPointerException
异常堆栈如下
代码如下
环境
Version info: 'GraalVM 22.2.0 Java 17 CE'
Java version info: '17.0.4+8-jvmci-22.2-b06'
spring boot version:2.7.1
spring native version:0.12.1
nacos spring boot version:0.2.12
maven version:3.8.4
docker version:20.10.17
复现步骤
demo仓库:https://github.com/xuanyangyang/native-demo
注意:修改一下application.properties里的nacos配置去适配你的环境
The text was updated successfully, but these errors were encountered: