Mybatis generator generates a model of all the databases in the mysql server.

mybatis generator generates a model of all the databases in the mysql server, and I only need to generate one of them.

The

configuration is configured as follows:
https://www.jianshu.com/p/5c8...

the difference is that the mysql server in the tutorial should be 5.x. I use 8.x. Some configurations are different, for example:

The busbook database has been specified on

url, but the result generated is for all databases. How can we make it generate only the specified database?


clipboard.png

<table schema="dbname" tableName="%">
</table>

it is possible that the permissions of mysql users are too large. It is recommended to use a user with only busbook permissions to try


. Has the landlord solved it?

Menu