Skip to content

Commit 2f93f74

Browse files
committed
refactor: 调整示例代码目录结构
1 parent d925323 commit 2f93f74

File tree

166 files changed

+483
-471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+483
-471
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ insert_final_newline = true
1919
[*.{bat, cmd}]
2020
end_of_line = crlf
2121

22-
[*.{java, gradle, groovy, kt, sh, xml}]
22+
[*.{java, gradle, groovy, kt, sh}]
2323
indent_size = 4
2424

2525
[*.md]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>org.springframework.boot</groupId>
8+
<artifactId>spring-boot-starter-parent</artifactId>
9+
<version>2.6.3</version>
10+
</parent>
11+
12+
<groupId>io.github.dunwu</groupId>
13+
<artifactId>javadb-elasticsearch7</artifactId>
14+
<version>1.0.0</version>
15+
<packaging>jar</packaging>
16+
17+
<properties>
18+
<elasticsearch.version>7.16.3</elasticsearch.version>
19+
</properties>
20+
21+
<dependencies>
22+
<dependency>
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.springframework.boot</groupId>
28+
<artifactId>spring-boot-starter-json</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>org.springframework.boot</groupId>
32+
<artifactId>spring-boot-starter-test</artifactId>
33+
<scope>test</scope>
34+
</dependency>
35+
36+
<dependency>
37+
<groupId>org.projectlombok</groupId>
38+
<artifactId>lombok</artifactId>
39+
</dependency>
40+
<dependency>
41+
<groupId>cn.hutool</groupId>
42+
<artifactId>hutool-all</artifactId>
43+
<version>5.7.20</version>
44+
</dependency>
45+
46+
<dependency>
47+
<groupId>co.elastic.clients</groupId>
48+
<artifactId>elasticsearch-java</artifactId>
49+
<version>7.16.3</version>
50+
</dependency>
51+
52+
<dependency>
53+
<groupId>org.elasticsearch.client</groupId>
54+
<artifactId>elasticsearch-rest-client</artifactId>
55+
<version>${elasticsearch.version}</version>
56+
</dependency>
57+
<dependency>
58+
<groupId>org.elasticsearch.client</groupId>
59+
<artifactId>elasticsearch-rest-high-level-client</artifactId>
60+
<version>${elasticsearch.version}</version>
61+
</dependency>
62+
</dependencies>
63+
64+
<dependencyManagement>
65+
<dependencies>
66+
<dependency>
67+
<groupId>com.fasterxml.jackson.core</groupId>
68+
<artifactId>jackson-databind</artifactId>
69+
<version>2.12.3</version>
70+
</dependency>
71+
<dependency>
72+
<groupId>com.fasterxml.jackson.core</groupId>
73+
<artifactId>jackson-core</artifactId>
74+
<version>2.12.3</version>
75+
</dependency>
76+
</dependencies>
77+
</dependencyManagement>
78+
79+
<build>
80+
<plugins>
81+
<plugin>
82+
<groupId>org.springframework.boot</groupId>
83+
<artifactId>spring-boot-maven-plugin</artifactId>
84+
</plugin>
85+
</plugins>
86+
</build>
87+
</project>

codes/javadb/elasticsearch/pom.xml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>io.github.dunwu</groupId>
7+
<artifactId>javadb-elasticsearch</artifactId>
8+
<version>1.0.0</version>
9+
<packaging>pom</packaging>
10+
11+
<modules>
12+
<module>elasticsearch7</module>
13+
</modules>
14+
</project>

codes/javadb/h2/pom.xml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>org.springframework.boot</groupId>
8+
<artifactId>spring-boot-starter-parent</artifactId>
9+
<version>2.6.3</version>
10+
</parent>
11+
12+
<groupId>io.github.dunwu</groupId>
13+
<artifactId>javadb-h2</artifactId>
14+
<version>1.0.0</version>
15+
<packaging>jar</packaging>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.springframework.boot</groupId>
20+
<artifactId>spring-boot-starter-data-rest</artifactId>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-starter-data-jpa</artifactId>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.springframework.boot</groupId>
28+
<artifactId>spring-boot-starter-test</artifactId>
29+
<scope>test</scope>
30+
</dependency>
31+
<dependency>
32+
<groupId>org.projectlombok</groupId>
33+
<artifactId>lombok</artifactId>
34+
</dependency>
35+
36+
<!-- db begin -->
37+
<dependency>
38+
<groupId>com.h2database</groupId>
39+
<artifactId>h2</artifactId>
40+
<version>2.1.210</version>
41+
</dependency>
42+
<!-- db end -->
43+
</dependencies>
44+
45+
<build>
46+
<plugins>
47+
<plugin>
48+
<groupId>org.springframework.boot</groupId>
49+
<artifactId>spring-boot-maven-plugin</artifactId>
50+
</plugin>
51+
</plugins>
52+
</build>
53+
</project>

codes/javadb/hbase/pom.xml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0"?>
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4+
xmlns="http://maven.apache.org/POM/4.0.0">
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>io.github.dunwu</groupId>
7+
<artifactId>javadb-hbase</artifactId>
8+
<version>1.0.0</version>
9+
<packaging>jar</packaging>
10+
11+
<properties>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
<java.version>1.8</java.version>
14+
<maven.compiler.source>${java.version}</maven.compiler.source>
15+
<maven.compiler.target>${java.version}</maven.compiler.target>
16+
17+
<hbase.version>1.3.1</hbase.version>
18+
<junit.version>4.13.1</junit.version>
19+
<dunwu.version>0.5.7</dunwu.version>
20+
</properties>
21+
22+
<dependencies>
23+
<dependency>
24+
<groupId>org.apache.hbase</groupId>
25+
<artifactId>hbase-client</artifactId>
26+
</dependency>
27+
<dependency>
28+
<groupId>io.github.dunwu</groupId>
29+
<artifactId>dunwu-tool-core</artifactId>
30+
</dependency>
31+
32+
<!-- test begin -->
33+
<dependency>
34+
<groupId>junit</groupId>
35+
<artifactId>junit</artifactId>
36+
</dependency>
37+
<!-- test end -->
38+
</dependencies>
39+
40+
<dependencyManagement>
41+
<dependencies>
42+
<dependency>
43+
<groupId>org.apache.hbase</groupId>
44+
<artifactId>hbase-client</artifactId>
45+
<version>${hbase.version}</version>
46+
</dependency>
47+
<dependency>
48+
<groupId>io.github.dunwu</groupId>
49+
<artifactId>dunwu-tool-core</artifactId>
50+
<version>${dunwu.version}</version>
51+
</dependency>
52+
53+
<!-- test begin -->
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<version>${junit.version}</version>
58+
<scope>test</scope>
59+
</dependency>
60+
<!-- test end -->
61+
</dependencies>
62+
</dependencyManagement>
63+
</project>

codes/javadb/javadb-hbase/src/test/java/io/github/dunwu/javadb/hbase/HbaseHelperTest.java codes/javadb/hbase/src/test/java/io/github/dunwu/javadb/hbase/HbaseHelperTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.github.dunwu.javadb.hbase;
22

3-
import io.github.dunwu.javadb.hbase.HbaseHelper;
43
import org.apache.hadoop.hbase.HTableDescriptor;
54
import org.apache.hadoop.hbase.client.Result;
65
import org.junit.Assert;

codes/javadb/javadb-elasticsearch/pom.xml

-87
This file was deleted.

codes/javadb/javadb-h2/pom.xml

-53
This file was deleted.

0 commit comments

Comments
 (0)