-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
4.2.0版本在用GraalVM时与HikariCP的兼容问题 #597
Comments
mvn -Pnative clean native:compile 跑不起来, 看异常感觉和classLoader有关...先自己排查看下也 |
|
测试用例已经放到 git 上。https://github.com/tuhe32/boot-native.git |
Caused by: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: java.lang.ClassNotFoundException: com.example.bootnative.BootNativeApplication$$Lambda$0e4dae6cce3633a42432312a352810f4c99affcf
com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda.extract(SerializedLambda.java:58)
com.baomidou.mybatisplus.core.toolkit.LambdaUtils.extract(LambdaUtils.java:67)
com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.getColumnCache(AbstractLambdaWrapper.java:128)
com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:66)
com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.lambda$columnsToString$0(AbstractLambdaWrapper.java:57)
[...] |
|
|
[
{
"condition":{"typeReachable":"com.zaxxer.hikari.HikariConfig"},
"name":"com.zaxxer.hikari.HikariConfig",
"methods":[{"name":"<init>","parameterTypes":[] }]
}
]
|
说实话,我完全不了解GraalVM.... mybatis-plus支持springboot3的相关issue baomidou/mybatis-plus#5527 |
|
@linghengqian 引入 |
{
"types":[
],
"lambdaCapturingTypes":[
{
"name":"com.example.bootnative.BootNativeApplication"
}
],
"proxies":[
]
} |
所以和动态数据源无关是吧. |
|
不明觉厉,closed. |
在你的例子里面,可以跑起来,但是我要如何在编译的时候不报错呢 |
|
Please fill it out carefully, or it will be closed.
请认真填写,不然会直接关闭。
Enviroment
Version info: 'GraalVM 22.3.0 Java 17 CE'
Java version info: '17.0.5+8-jvmci-22.3-b08'
C compiler: cc (apple, x86_64, 13.1.6)
JDK Version(required):
'17.0.5+8-jvmci-22.3-b08'
SpringBoot Version(required):
3.1.4
dynamic-datasource-spring-boot-starter Version(required):
4.2.0
druid Version(optional):
Describe what happened
项目用了HikariCP连接池
用mvn -Pnative clean native:compile 打包是成功的。启动报错:
Expected Result:
Actual Result:
If there is an exception,or aop invalid,please attach the exception trace:
Steps to reproduce
测试用例:
Step 1
测试用例地址
https://github.com/tuhe32/boot-native.git
Step 2
Step 3
The text was updated successfully, but these errors were encountered: