MyBatis's Mapper.xml and entity classes are all dead, today touch a tool, simply configure, then you can mybatis the database XML files and interfaces and entity classes, and the SQL statement is very full Oh!
It is generated from a Java package and configuration file:
And then follow the Generator.xml configuration inside the hint file generated directory to write to that SRC above, indifferent note the database configuration in the same as your project, the database configuration file, the name attention and the usual database. As with entity class naming conventions, you can:
Then double-click that batch file to generate the two files:
http://download.csdn.net/detail/u010214269/8999225 Download Link
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
MyBatis automatic generation of Mapper.xml and interface entity class tools