Skip to content

Commit 54ca77d

Browse files
xiaoyekanrenCritasWangCopilot
authored
Fix dependence (#85)
* fix version dependence * optimized code * fix readme * rm .vscode * Update pom.xml * Apply suggestions from code review Co-authored-by: Copilot <[email protected]> * Update pom.xml --------- Co-authored-by: CritasWang <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 6315151 commit 54ca77d

File tree

24 files changed

+520
-585
lines changed

24 files changed

+520
-585
lines changed

README-zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ mvn clean package -Pwith-all-connectors,with-examples,with-springboot -DskipTest
302302
- [Flink 示例](/examples/flink/README.md)
303303
- [Spark 表示例](/examples/spark-table/README.md)
304304
- [MyBatis 生成器示例](/examples/mybatis-generator/README.md)
305-
- [IoTDB Spring Boot Starter 示例](/examples/iotdb-spring-boot-start/readme.md)
305+
- [IoTDB Spring Boot Starter 示例](/examples/iotdb-spring-boot-start/README.md)
306306
- [Kafka 示例](/examples/kafka/readme.md)
307307

308308
您还可以参考模块特定的文档:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ For detailed usage instructions, please refer to the README files in the specifi
304304
- [Flink Examples](/examples/flink/README.md)
305305
- [Spark Table Examples](/examples/spark-table/README.md)
306306
- [MyBatis Generator Examples](/examples/mybatis-generator/README.md)
307-
- [IoTDB Spring Boot Starter Examples](/examples/iotdb-spring-boot-start/readme.md)
307+
- [IoTDB Spring Boot Starter Examples](/examples/iotdb-spring-boot-start/README.md)
308308
- [Kafka Examples](/examples/kafka/readme.md)
309309

310310
You can also refer to module-specific documentation:
File renamed without changes.

examples/iotdb-spring-boot-start/pom.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<parent>
2525
<groupId>org.springframework.boot</groupId>
2626
<artifactId>spring-boot-starter-parent</artifactId>
27-
<version>3.4.3</version>
27+
<version>3.5.1</version>
2828
<relativePath/>
2929
<!-- lookup parent from repository -->
3030
</parent>
@@ -35,8 +35,7 @@
3535
<description>iotdb-spring-boot-start</description>
3636
<properties>
3737
<java.version>17</java.version>
38-
<spring-boot.version>3.4.5</spring-boot.version>
39-
<spring.version>6.2.6</spring.version>
38+
<version>3.5.1</version>
4039
<google.java.format.version>1.22.0</google.java.format.version>
4140
<spotless.version>2.43.0</spotless.version>
4241
</properties>
@@ -55,6 +54,11 @@
5554
<artifactId>iotdb-spring-boot-starter</artifactId>
5655
<version>2.0.4-SNAPSHOT</version>
5756
</dependency>
57+
<dependency>
58+
<groupId>org.apache.iotdb</groupId>
59+
<artifactId>isession</artifactId>
60+
<version>2.0.4-SNAPSHOT</version>
61+
</dependency>
5862
</dependencies>
5963
<build>
6064
<plugins>

examples/iotdb-spring-boot-start/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
spring.application.name=iotdb-spring-boot-start
2020

21-
iotdb.session.node_urls=172.20.31.56:6668
21+
iotdb.session.node_urls=127.0.0.1:6667
2222
iotdb.session.password=root
2323
iotdb.session.username=root
2424
iotdb.session.database=wind

examples/mybatisplus-generator/pom.xml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,26 @@
2121
-->
2222
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2323
<modelVersion>4.0.0</modelVersion>
24-
2524
<parent>
26-
<groupId>org.apache.iotdb</groupId>
27-
<artifactId>iotdb-extras-parent</artifactId>
28-
<version>2.0.4-SNAPSHOT</version>
29-
<relativePath>../../pom.xml</relativePath>
25+
<groupId>org.springframework.boot</groupId>
26+
<artifactId>spring-boot-starter-parent</artifactId>
27+
<version>3.5.1</version>
28+
<relativePath/>
29+
<!-- lookup parent from repository -->
3030
</parent>
31-
3231
<groupId>org.apache.iotdb</groupId>
3332
<artifactId>mybatisplus-generator-example</artifactId>
3433
<name>IoTDB: Example: Mybatis Plus Generator</name>
35-
<version>2.0.4-SNAPHOT</version>
36-
34+
<version>2.0.4-SNAPSHOT</version>
3735
<properties>
3836
<mybatisplus.version>3.5.10</mybatisplus.version>
3937
<maven.compiler.source>17</maven.compiler.source>
4038
<maven.compiler.target>17</maven.compiler.target>
4139
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42-
<spring-boot.version>3.4.5</spring-boot.version>
43-
<spring.version>6.2.6</spring.version>
40+
<spring-boot.version>3.5.1</spring-boot.version>
4441
<iotdb-jdbc.version>2.0.4-SNAPSHOT</iotdb-jdbc.version>
4542
<io-springfox.version>3.0.0</io-springfox.version>
4643
</properties>
47-
4844
<dependencies>
4945
<dependency>
5046
<groupId>com.baomidou</groupId>
@@ -56,11 +52,16 @@
5652
<artifactId>mybatis-plus-generator</artifactId>
5753
<version>${mybatisplus.version}</version>
5854
</dependency>
59-
6055
<dependency>
6156
<groupId>org.apache.iotdb</groupId>
6257
<artifactId>iotdb-jdbc</artifactId>
6358
<version>${iotdb-jdbc.version}</version>
59+
<exclusions>
60+
<exclusion>
61+
<groupId>commons-logging</groupId>
62+
<artifactId>commons-logging</artifactId>
63+
</exclusion>
64+
</exclusions>
6465
</dependency>
6566
<dependency>
6667
<groupId>org.springframework.boot</groupId>
@@ -70,15 +71,13 @@
7071
<dependency>
7172
<groupId>org.springframework.boot</groupId>
7273
<artifactId>spring-boot-starter-web</artifactId>
73-
<version>${spring-boot.version}</version>
7474
</dependency>
7575
<dependency>
7676
<groupId>org.springframework.boot</groupId>
7777
<artifactId>spring-boot-starter-test</artifactId>
7878
<version>${spring-boot.version}</version>
7979
<scope>test</scope>
8080
</dependency>
81-
8281
<dependency>
8382
<groupId>io.springfox</groupId>
8483
<artifactId>springfox-swagger2</artifactId>
@@ -89,7 +88,6 @@
8988
<artifactId>springfox-swagger-ui</artifactId>
9089
<version>${io-springfox.version}</version>
9190
</dependency>
92-
9391
<dependency>
9492
<groupId>org.projectlombok</groupId>
9593
<artifactId>lombok</artifactId>
@@ -100,8 +98,15 @@
10098
<artifactId>mybatisplus-plus</artifactId>
10199
<version>1.7.5-RELEASE</version>
102100
</dependency>
101+
<dependency>
102+
<groupId>ch.qos.logback</groupId>
103+
<artifactId>logback-classic</artifactId>
104+
</dependency>
105+
<dependency>
106+
<groupId>ch.qos.logback</groupId>
107+
<artifactId>logback-core</artifactId>
108+
</dependency>
103109
</dependencies>
104-
105110
<build>
106111
<plugins>
107112
<plugin>
@@ -112,7 +117,7 @@
112117
<dependency>
113118
<groupId>org.apache.iotdb</groupId>
114119
<artifactId>mybatis-generator-plugin</artifactId>
115-
<version>2.0.2-SNAPSHOT</version>
120+
<version>2.0.4-SNAPSHOT</version>
116121
</dependency>
117122
</dependencies>
118123
<configuration>
@@ -123,5 +128,4 @@
123128
</plugin>
124129
</plugins>
125130
</build>
126-
127131
</project>

examples/mybatisplus-generator/src/main/java/org/apache/iotdb/Main.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919

2020
package org.apache.iotdb;
2121

22+
import org.apache.iotdb.jdbc.IoTDBDataSource;
23+
2224
import com.baomidou.mybatisplus.generator.FastAutoGenerator;
2325
import com.baomidou.mybatisplus.generator.config.DataSourceConfig;
2426
import com.baomidou.mybatisplus.generator.config.OutputFile;
2527
import com.baomidou.mybatisplus.generator.config.rules.DateType;
2628
import com.baomidou.mybatisplus.generator.config.rules.DbColumnType;
27-
import org.apache.iotdb.jdbc.IoTDBDataSource;
2829
import org.mybatis.spring.annotation.MapperScan;
2930
import org.springframework.boot.SpringApplication;
3031
import org.springframework.boot.autoconfigure.SpringBootApplication;
Lines changed: 33 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,33 @@
1-
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
18-
*/
19-
20-
package org.apache.iotdb.controller;
21-
22-
import org.springframework.web.bind.annotation.RequestMapping;
23-
import org.springframework.web.bind.annotation.RestController;
24-
25-
/**
26-
* <p>
27-
* 前端控制器
28-
* </p>
29-
*
30-
* @author IoTDB
31-
* @since 2025-06-24
32-
*/
33-
@RestController
34-
@RequestMapping("/table1")
35-
public class Table1Controller {
36-
37-
}
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package org.apache.iotdb.controller;
21+
22+
import org.springframework.web.bind.annotation.RequestMapping;
23+
import org.springframework.web.bind.annotation.RestController;
24+
25+
/**
26+
* 前端控制器
27+
*
28+
* @author IoTDB
29+
* @since 2025-06-24
30+
*/
31+
@RestController
32+
@RequestMapping("/table1")
33+
public class Table1Controller {}
Lines changed: 33 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,33 @@
1-
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
18-
*/
19-
20-
package org.apache.iotdb.controller;
21-
22-
import org.springframework.web.bind.annotation.RequestMapping;
23-
import org.springframework.web.bind.annotation.RestController;
24-
25-
/**
26-
* <p>
27-
* 前端控制器
28-
* </p>
29-
*
30-
* @author IoTDB
31-
* @since 2025-06-24
32-
*/
33-
@RestController
34-
@RequestMapping("/table2")
35-
public class Table2Controller {
36-
37-
}
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package org.apache.iotdb.controller;
21+
22+
import org.springframework.web.bind.annotation.RequestMapping;
23+
import org.springframework.web.bind.annotation.RestController;
24+
25+
/**
26+
* 前端控制器
27+
*
28+
* @author IoTDB
29+
* @since 2025-06-24
30+
*/
31+
@RestController
32+
@RequestMapping("/table2")
33+
public class Table2Controller {}

0 commit comments

Comments
 (0)