Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of using Mybatis Generator to report errors in Eclipse

Shulou Source: shulou.com Published: 2022-06-03 15:04:45 11月14日 Update

This article introduces the relevant knowledge of "how to solve the problem of using Mybatis Generator in Eclipse". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Errors encountered in using Mybatis Generator in Eclipse:

Java.lang.RuntimeException: Cannot instantiate object of type mybatis.PaginationPlugin

This is because I added a line to my generatorConfig.xml configuration file

If an error is reported, just delete it.

two。 When running to generate files such as Model, other tables under schema in the database are also generated, so the setting of schema does not work. Later, the query found that if it is MySQL, you need to add an item to the setting.

Add it and run it, and it's a success.

This is the end of the content of "how to solve the problem of using Mybatis Generator in Eclipse". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Content files more knowledge generation operation utility success learning next role dilemma reality situation data database article case editor website Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Huawei Shulou Information MySQL Linux