From 967ee92cb4f66415751ad4895adee068e4d2e675 Mon Sep 17 00:00:00 2001 From: 2b3c511 Date: Thu, 10 Apr 2025 12:02:17 +0800 Subject: [PATCH] update README.md (cherry picked from commit e22cf118d10aecdc9440be50cfebde93aeaabb6e) --- 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 - - - org.mybatis.generator - mybatis-generator-maven-plugin - 1.4.2 - - - org.apache.iotdb - iotdb-mybatis-generator - 2.0.2-SNAPSHOT - - - - true - true - src/main/resources/generatorConfig.xml - - - - + + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.4.2 + + + org.apache.iotdb + mybatis-generator-plugin + 2.0.2-SNAPSHOT + + + + true + true + src/main/resources/generatorConfig.xml + + + + ``` - * 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`