Commit 4d02bb9b authored by hewei's avatar hewei

增加MyBatis Generator 参考配置,fix #issues-6

parent 4d24804f
...@@ -28,6 +28,36 @@ Maven引用: ...@@ -28,6 +28,36 @@ Maven引用:
</dependency> </dependency>
``` ```
--------------------------------------- ---------------------------------------
MyBatis Generator 参考配置(插件依赖应该配置在mybatis-generator-maven-plugin插件依赖中[[issues#6]](https://github.com/itfsw/mybatis-generator-plugin/issues/6))
```xml
<!-- mybatis-generator 自动代码插件 -->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.5</version>
<configuration>
<!-- 配置文件 -->
<configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>
<!-- 允许移动和修改 -->
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<dependencies>
<!-- jdbc 依赖 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.driver.version}</version>
</dependency>
<dependency>
<groupId>com.itfsw</groupId>
<artifactId>mybatis-generator-plugin</artifactId>
<version>${mybatis.generator.plugin.version}</version>
</dependency>
</dependencies>
</plugin>
```
---------------------------------------
### 1. 查询单条数据插件 ### 1. 查询单条数据插件
对应表Mapper接口增加了方法 对应表Mapper接口增加了方法
插件: 插件:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment