Open fushun1990 opened 1 year ago
I don't think this can be fixed with reachability metadata. The problem will need to be addressed in the code that's attempting to bind configuration properties directly to ibatis classes. Presumably that code is part of mybatis-plus-boot-starter.
@dnestoro I think you can close this issue.
ok, 但是能否给我一些意见,我应该怎么进行修改才可以解决这个问题了。或者是否有相似问题的解决方案我做参考。 我没有找到相关是学习文档和解决方案。谢谢!!
以上文字是中文翻译的。抱歉
ok But could you please give me some advice on how I should modify to solve this problem? Or whether there are solutions to similar problems for my reference. I did not find the relevant documentation and solution. Thank you!!
The above text is translated from Chinese. Sorry
@fushun1990
What kind of help do you need? Do you want to attend GraalVM's offline meetings? None of these questions are relevant to the current issue.
Normally you just need to create a Gradle project and write unit tests for Mybatis Plus using GraalVM Native Build Tools Gradle Plugin. You can then collect GraalVM reachability metadata by executing Gradle tasks and manually adjust and execute nativeTest.
You major need to read the https://github.com/oracle/graalvm-reachability-metadata/blob/master/CONTRIBUTING.md and https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html . In any case, you must first finish see https://www.graalvm.org/22.3/docs/ , of course, all the documents, to understand why we want to collect GraalVM reachability metadata.
Describe the problem ` Exception in thread "main" org.springframework.boot.context.properties.bind.MissingParametersCompilerArgumentException: Constructor binding in a native image requires compilation with -parameters but the following classes were compiled without it: org.apache.ibatis.builder.CacheRefResolver org.apache.ibatis.parsing.XNode org.apache.ibatis.builder.annotation.MethodResolver org.apache.ibatis.builder.ResultMapResolver org.apache.ibatis.mapping.ResultFlag
`
Additional context Add any other context about the problem here.
System Info (please complete the following information):
mac
]graalvm-ce-java17-22.3.0
]17
]native-maven-plugin:0.9.19
]To Reproduce demo 2.zip