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

Add support for [com.baomidou:mybatis-plus-boot-starter:jar:3.5.3.1] #159

Open
fushun1990 opened this issue Jan 4, 2023 · 4 comments
Open
Labels
question Further information is requested

Comments

@fushun1990
Copy link

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

    at org.springframework.boot.context.properties.bind.BindableRuntimeHintsRegistrar.registerHints(BindableRuntimeHintsRegistrar.java:87)
    at org.springframework.boot.context.properties.ConfigurationPropertiesBeanFactoryInitializationAotProcessor$ConfigurationPropertiesReflectionHintsContribution.applyTo(ConfigurationPropertiesBeanFactoryInitializationAotProcessor.java:70)
    at org.springframework.context.aot.BeanFactoryInitializationAotContributions.applyTo(BeanFactoryInitializationAotContributions.java:78)
    at org.springframework.context.aot.ApplicationContextAotGenerator.lambda$processAheadOfTime$0(ApplicationContextAotGenerator.java:58)
    at org.springframework.context.aot.ApplicationContextAotGenerator.withCglibClassHandler(ApplicationContextAotGenerator.java:67)
    at org.springframework.context.aot.ApplicationContextAotGenerator.processAheadOfTime(ApplicationContextAotGenerator.java:53)
    at org.springframework.context.aot.ContextAotProcessor.performAotProcessing(ContextAotProcessor.java:106)
    at org.springframework.context.aot.ContextAotProcessor.doProcess(ContextAotProcessor.java:84)
    at org.springframework.context.aot.ContextAotProcessor.doProcess(ContextAotProcessor.java:49)
    at org.springframework.context.aot.AbstractAotProcessor.process(AbstractAotProcessor.java:82)
    at org.springframework.boot.SpringApplicationAotProcessor.main(SpringApplicationAotProcessor.java:76)

`

Additional context
Add any other context about the problem here.

System Info (please complete the following information):

  • OS: [e.g. mac]
  • GraalVM Version [e.g. graalvm-ce-java17-22.3.0]
  • Java Version [e.g. 17]
  • Plugin version [e.g. native-maven-plugin:0.9.19]

To Reproduce
demo 2.zip

@fushun1990 fushun1990 added the question Further information is requested label Jan 4, 2023
@wilkinsona
Copy link
Contributor

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.

@sdeleuze
Copy link
Collaborator

sdeleuze commented Jan 5, 2023

@dnestoro I think you can close this issue.

@fushun1990
Copy link
Author

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

@linghengqian
Copy link
Contributor

linghengqian commented Jan 7, 2023

@fushun1990

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants