|
20 | 20 |
|
21 | 21 | --> |
22 | 22 |
|
23 | | -# iotdb-spring-boot-starter |
| 23 | +# mybatis-generator-plugin |
24 | 24 |
|
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: |
26 | 28 |
|
27 | 29 | ```java |
28 | 30 | <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> |
49 | 51 | ``` |
50 | | - |
51 | 52 | * 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 |
52 | 53 |
|
53 | 54 | * Modify the content you want to use in 'generatorConfig. xml', mainly by:` jdbcConnection`、`javaModelGenerator`、`sqlMapGenerator`、`javaClientGenerator`、`table` |
|
0 commit comments