beryx / badass-jlink-plugin

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

Mybatis mapper error #254

Open HsCodeLab opened 8 months ago

HsCodeLab commented 8 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 8 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?