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

Mybatis mapper error #254

Open
HsCodeLab opened this issue Jan 10, 2024 · 1 comment
Open

Mybatis mapper error #254

HsCodeLab opened this issue Jan 10, 2024 · 1 comment

Comments

@HsCodeLab
Copy link

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
Copy link
Author

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?

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

No branches or pull requests

1 participant