beryx / badass-jlink-plugin

Create a custom runtime image of your modular application
https://badass-jlink-plugin.beryx.org
Apache License 2.0
386 stars 27 forks source link

Mybatis mapper error #254

Open HsCodeLab opened 10 months ago

HsCodeLab commented 10 months ago

xx.merged.module org.apache.ibatis.binding.BindingException: Type interface xx is not known to the MapperRegistry.

I have a JavaFX modular project that utilizes MyBatis for database communication. I used the badass plugin to generate a merged module, and in the module-info.java file, I've already declared the opening of the xx.mapper package. However, I'm encountering an error: org.apache.ibatis.binding.BindingException: Type interface xx is not known to the MapperRegistry. Previously, the project worked fine with Maven. Has anyone experienced similar issues with MyBatis in a modular Java project? Any insights or solutions would be appreciated. Thank you!

HsCodeLab commented 10 months ago

I have found that there are issues when registering typeAliases and mappers using . If registered individually, it runs fine. What could be the reason? Any suggestions?