使用MyBatis Generartor自动生成代码

介绍MyBatis Generator(http://www.mybatis.org/generator/index.html) 是MyBatis的一款代码生成器,它可以针对数据库表自动生成DTO、Mapper接口及相应的xml文件。 操作步骤1.在pom.xml中配置plugin: <build> <plugins> <plu ...