首页 > 代码库 > 集成通用Mapper

集成通用Mapper

通用Mapper集成

1.引入jar包

<mapper.version>3.0.1</mapper.version>
<persistence-api.version>1.0.2</persistence-api.version>
<dependency>
<groupId>com.github.abel533</groupId>
<artifactId>mapper</artifactId>
<version>${mapper.version}</version>
</dependency>

<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>${persistence-api.version}</version>
</dependency>

2.在mybatis配置生成generatorConfig.xml添加插件

<plugin type="com.github.abel533.generator.MapperPlugin">
<property name="mappers" value="http://www.mamicode.com/com.github.abel533.mapper.Mapper"/>
</plugin>


说明:其他部分不提供

集成通用Mapper