This is an automated email from the ASF dual-hosted git repository.
critas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb-extras.git
The following commit(s) were added to refs/heads/master by this push:
new 939ee61 update README.md (#59)
939ee61 is described below
commit 939ee61e45e54c8abdd94e57c51e5b543d79838c
Author: Summer <[email protected]>
AuthorDate: Thu Apr 10 12:24:09 2025 +0800
update README.md (#59)
(cherry picked from commit e22cf118d10aecdc9440be50cfebde93aeaabb6e)
Co-authored-by: 2b3c511 <[email protected]>
---
examples/mybatisplus-generator/readme.md | 4 +--
mybatis-generator/README.md | 47 ++++++++++++++++----------------
2 files changed, 26 insertions(+), 25 deletions(-)
diff --git a/examples/mybatisplus-generator/readme.md
b/examples/mybatisplus-generator/readme.md
index 457b93f..4ed7211 100644
--- a/examples/mybatisplus-generator/readme.md
+++ b/examples/mybatisplus-generator/readme.md
@@ -18,10 +18,10 @@
under the License.
-->
-# Mybatis-Generator Demo
+# MybatisPlus-Generator Demo
## Introduction
- This demo shows how to use IoTDB-Mybatis-Generator
+ This demo shows how to use IoTDB-MybatisPlus-Generator
### Version usage
diff --git a/mybatis-generator/README.md b/mybatis-generator/README.md
index e8f848f..fbd3eb4 100644
--- a/mybatis-generator/README.md
+++ b/mybatis-generator/README.md
@@ -20,34 +20,35 @@
-->
-# iotdb-spring-boot-starter
+# mybatis-generator-plugin
-* After 'clone' the project, execute 'mvn clean install'. This step is not
necessary as it has already been uploaded to the Maven central repository
+* 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
+
+* Add the following configuration to the 'pom' file of the project to be
generated:
```java
<build>
- <plugins>
- <plugin>
- <groupId>org.mybatis.generator</groupId>
- <artifactId>mybatis-generator-maven-plugin</artifactId>
- <version>1.4.2</version>
- <dependencies>
- <dependency>
- <groupId>org.apache.iotdb</groupId>
- <artifactId>iotdb-mybatis-generator</artifactId>
- <version>2.0.2-SNAPSHOT</version>
- </dependency>
- </dependencies>
- <configuration>
- <verbose>true</verbose>
- <overwrite>true</overwrite>
-
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ <plugins>
+ <plugin>
+ <groupId>org.mybatis.generator</groupId>
+
<artifactId>mybatis-generator-maven-plugin</artifactId>
+ <version>1.4.2</version>
+ <dependencies>
+ <dependency>
+
<groupId>org.apache.iotdb</groupId>
+
<artifactId>mybatis-generator-plugin</artifactId>
+
<version>2.0.2-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <verbose>true</verbose>
+ <overwrite>true</overwrite>
+
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
```
-
* 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
* Modify the content you want to use in 'generatorConfig. xml', mainly by:`
jdbcConnection`、`javaModelGenerator`、`sqlMapGenerator`、`javaClientGenerator`、`table`