Skip to content

Commit 939ee61

Browse files
2b3c5112b3c511
andauthored
update README.md (apache#59)
(cherry picked from commit e22cf11) Co-authored-by: 2b3c511 <[email protected]>
1 parent e8c86d7 commit 939ee61

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

examples/mybatisplus-generator/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
under the License.
1919
2020
-->
21-
# Mybatis-Generator Demo
21+
# MybatisPlus-Generator Demo
2222
## Introduction
2323

24-
This demo shows how to use IoTDB-Mybatis-Generator
24+
This demo shows how to use IoTDB-MybatisPlus-Generator
2525

2626
### Version usage
2727

mybatis-generator/README.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,35 @@
2020
2121
-->
2222

23-
# iotdb-spring-boot-starter
23+
# mybatis-generator-plugin
2424

25-
* After 'clone' the project, execute 'mvn clean install'. This step is not necessary as it has already been uploaded to the Maven central repository
25+
* After 'clone' the project, execute 'mvn clean install' or 'mvn clean deploy' locally ('deploy' needs to modify 'distributionManagement' in 'pom'). This step is not necessary as it has already been uploaded to the Maven central repository
26+
27+
* Add the following configuration to the 'pom' file of the project to be generated:
2628

2729
```java
2830
<build>
29-
<plugins>
30-
<plugin>
31-
<groupId>org.mybatis.generator</groupId>
32-
<artifactId>mybatis-generator-maven-plugin</artifactId>
33-
<version>1.4.2</version>
34-
<dependencies>
35-
<dependency>
36-
<groupId>org.apache.iotdb</groupId>
37-
<artifactId>iotdb-mybatis-generator</artifactId>
38-
<version>2.0.2-SNAPSHOT</version>
39-
</dependency>
40-
</dependencies>
41-
<configuration>
42-
<verbose>true</verbose>
43-
<overwrite>true</overwrite>
44-
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
45-
</configuration>
46-
</plugin>
47-
</plugins>
48-
</build>
31+
<plugins>
32+
<plugin>
33+
<groupId>org.mybatis.generator</groupId>
34+
<artifactId>mybatis-generator-maven-plugin</artifactId>
35+
<version>1.4.2</version>
36+
<dependencies>
37+
<dependency>
38+
<groupId>org.apache.iotdb</groupId>
39+
<artifactId>mybatis-generator-plugin</artifactId>
40+
<version>2.0.2-SNAPSHOT</version>
41+
</dependency>
42+
</dependencies>
43+
<configuration>
44+
<verbose>true</verbose>
45+
<overwrite>true</overwrite>
46+
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
47+
</configuration>
48+
</plugin>
49+
</plugins>
50+
</build>
4951
```
50-
5152
* The location of the ` configurationFile ` configuration ` generatorConfig. xml ` file can be found in the ` src/main/resources ` template of this project for reference` Copy its content and place it in the corresponding location
5253

5354
* Modify the content you want to use in 'generatorConfig. xml', mainly by:` jdbcConnection``javaModelGenerator``sqlMapGenerator``javaClientGenerator``table`

0 commit comments

Comments
 (0)