You must configure your base dev environment include but not limited to java、mysql、maven
Using an IDE you liked and initialize the project import maven dependencies
change application.properties and generatorConfig.xml to your own config info.
using mybatis-generator to generate pojo\mapper\example
you will get such files