Skip to content
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

希望加入 graalvm 静态编译支持 动态数据源 #5869

Open
8502596 opened this issue Apr 25, 2024 · 1 comment
Open

希望加入 graalvm 静态编译支持 动态数据源 #5869

8502596 opened this issue Apr 25, 2024 · 1 comment

Comments

@8502596
Copy link

8502596 commented Apr 25, 2024

graalvm 运行的意义在于 能够静态编译 提高速度,

编译需要

mvn clean
mvn compile
mvn spring-boot:process-aot
mvn -Pnative native:build -f pom.xml

测试 hello world 程序可以正确打包,而第三步 spring-boot:process-aot 处理 druid 动态数据源的时候报错

image

似乎是没有拿到 配置文件中的 username password ,正常 运行 及 调试没有问题 ,处理 process-aot 时发生问题

image

框架源码采用 https://gitee.com/y_project/RuoYi 若依4.7.8 报错代码指向

image

其实也完成没懂 druid 是何时 把 master.url master.username master.password 注入到bean 里面去的,如果光根据代码看的
话 他确实应该报错,这里面似乎 不是druid 的代码问题 ,请大佬研究一下呗

@lizongbo
Copy link
Collaborator

近期我抽空研究下

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

No branches or pull requests

2 participants