标签:3.0 persist ati 添加 com jar包 pre depend mybatis
通用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="com.github.abel533.mapper.Mapper"/>
</plugin>
说明:其他部分不提供
标签:3.0 persist ati 添加 com jar包 pre depend mybatis
原文地址:http://www.cnblogs.com/nunuAction/p/7063937.html