Skip to content

Commit 1472684

Browse files
committed
Java:新增大数据 Demo 项目 APIJSONBoot-BigData
1 parent 7d127ac commit 1472684

24 files changed

+3513
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ APIJSON-Java-Server/APIJSONDemo-BigData/.idea
2222
APIJSON-Java-Server/APIJSONDemo-BigData/target
2323
APIJSON-Java-Server/APIJSONDemo-Presto/.idea
2424
APIJSON-Java-Server/APIJSONDemo-Presto/target
25+
APIJSON-Java-Server/APIJSONBoot-BigData/.idea
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target/
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# APIJSONBoot
2+
3+
APIJSON + SpringBoot 接近成品的 Demo
4+
5+
### 运行
6+
7+
右键 DemoApplication > Run As > Java Application
8+
9+
### 自定义 API 的说明(非 APIJSON 万能 API)
10+
https://github.com/xlongwei/light4j/tree/master/apijson#apijson%E8%B4%A6%E6%88%B7%E7%AE%A1%E7%90%86
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" 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+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>apijson.boot</groupId>
7+
<artifactId>apijson-boot</artifactId>
8+
<version>5.4.0</version>
9+
<packaging>jar</packaging>
10+
11+
<name>APIJSONBoot-BigData</name>
12+
<description>Demo project for APIJSON Server based on SpringBoot</description>
13+
14+
<properties>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
17+
<java.version>1.8</java.version>
18+
</properties>
19+
20+
<dependencies>
21+
<!-- JDK 11+ 需要,否则启动报错 NoClassDefFoundError: javax/activation/UnsupportedDataTypeException -->
22+
<dependency>
23+
<groupId>javax.activation</groupId>
24+
<artifactId>activation</artifactId>
25+
<version>1.1.1</version>
26+
</dependency>
27+
28+
<!-- APIJSON 需要用的依赖库,1.2.0 以上 -->
29+
<dependency>
30+
<groupId>com.alibaba</groupId>
31+
<artifactId>fastjson</artifactId>
32+
<version>1.2.83</version>
33+
</dependency>
34+
35+
<!-- apijson-framework 需要用的依赖库,4.0.0 以上 -->
36+
<dependency>
37+
<groupId>javax.servlet</groupId>
38+
<artifactId>javax.servlet-api</artifactId>
39+
<version>4.0.1</version>
40+
</dependency>
41+
42+
<!-- 单元测试:可使用 libs 目录的 unitauto-java.jar 和 unitauto-jar.jar 来替代,两种方式二选一 <<<<<<<<< -->
43+
<dependency>
44+
<groupId>com.github.TommyLemon</groupId>
45+
<artifactId>unitauto-java</artifactId>
46+
<version>2.7.2</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>com.github.TommyLemon</groupId>
50+
<artifactId>unitauto-jar</artifactId>
51+
<version>2.7.2</version>
52+
</dependency>
53+
<dependency>
54+
<groupId>io.github.classgraph</groupId>
55+
<artifactId>classgraph</artifactId>
56+
<version>4.8.146</version>
57+
</dependency>
58+
<!-- 单元测试:可使用 libs 目录的 unitauto-java.jar 和 unitauto-jar.jar 来替代,两种方式二选一 >>>>>>>>> -->
59+
60+
61+
<!-- 可使用 libs 目录的 apijson-orm.jar, apijson-framework.jar, apijson-column.jar 来替代,两种方式二选一 <<<<<<<<<< -->
62+
<dependency>
63+
<groupId>com.github.Tencent</groupId>
64+
<artifactId>APIJSON</artifactId>
65+
<version>5.4.0</version>
66+
</dependency>
67+
<dependency>
68+
<groupId>com.github.APIJSON</groupId>
69+
<artifactId>apijson-framework</artifactId>
70+
<version>5.3.0</version>
71+
<exclusions>
72+
<exclusion>
73+
<groupId>com.github.Tecent</groupId>
74+
<artifactId>APIJSON</artifactId>
75+
</exclusion>
76+
</exclusions>
77+
</dependency>
78+
<dependency>
79+
<groupId>com.github.APIJSON</groupId>
80+
<artifactId>apijson-column</artifactId>
81+
<version>1.2.7</version>
82+
</dependency>
83+
<!-- 可使用 libs 目录的 apijson-orm.jar, apijson-framework.jar, apijson-column.jar 来替代,两种方式二选一 >>>>>>>>>> -->
84+
85+
86+
<!-- 需要用的数据库 JDBC 驱动 -->
87+
<dependency>
88+
<groupId>mysql</groupId>
89+
<artifactId>mysql-connector-java</artifactId>
90+
<version>8.0.29</version>
91+
</dependency>
92+
<dependency>
93+
<groupId>org.elasticsearch.plugin</groupId>
94+
<artifactId>x-pack-sql-jdbc</artifactId>
95+
<version>8.4.3</version>
96+
</dependency>
97+
<dependency>
98+
<groupId>io.trino</groupId>
99+
<artifactId>trino-jdbc</artifactId>
100+
<version>400</version>
101+
</dependency>
102+
<dependency>
103+
<groupId>com.facebook.presto</groupId>
104+
<artifactId>presto-jdbc</artifactId>
105+
<version>0.277</version>
106+
</dependency>
107+
<!-- Oracle, SQLServer 等其它数据库的 JDBC 驱动,可以在这里加上 Maven 依赖或 libs 目录放 Jar 包并依赖 -->
108+
109+
<!-- 数据库 JDBC 驱动 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->
110+
111+
112+
<!-- APIJSONBoot 需要用的 SpringBoot 框架,1.4.0 以上 -->
113+
<dependency>
114+
<groupId>org.springframework.boot</groupId>
115+
<artifactId>spring-boot-starter-web</artifactId>
116+
<version>2.5.13</version>
117+
</dependency>
118+
119+
</dependencies>
120+
121+
<build>
122+
<plugins>
123+
<plugin>
124+
<groupId>org.springframework.boot</groupId>
125+
<artifactId>spring-boot-maven-plugin</artifactId>
126+
<executions>
127+
<execution>
128+
<goals>
129+
<goal>repackage</goal>
130+
</goals>
131+
</execution>
132+
</executions>
133+
</plugin>
134+
<plugin>
135+
<groupId>org.apache.maven.plugins</groupId>
136+
<artifactId>maven-compiler-plugin</artifactId>
137+
<configuration>
138+
<source>1.8</source>
139+
<target>1.8</target>
140+
</configuration>
141+
</plugin>
142+
</plugins>
143+
</build>
144+
145+
<!-- Allow access to Spring milestones and snapshots -->
146+
<!-- (you don't need this if you are using anything after 0.5.0.RELEASE) -->
147+
<repositories>
148+
<!-- APIJSON 必须用到的托管平台 -->
149+
<repository>
150+
<id>jitpack.io</id>
151+
<url>https://jitpack.io</url>
152+
<snapshots>
153+
<enabled>true</enabled>
154+
</snapshots>
155+
</repository>
156+
157+
<repository>
158+
<id>spring-snapshots</id>
159+
<url>http://repo.spring.io/snapshot</url>
160+
<snapshots>
161+
<enabled>true</enabled>
162+
</snapshots>
163+
</repository>
164+
<repository>
165+
<id>spring-milestones</id>
166+
<url>http://repo.spring.io/milestone</url>
167+
<snapshots>
168+
<enabled>true</enabled>
169+
</snapshots>
170+
</repository>
171+
</repositories>
172+
<pluginRepositories>
173+
<pluginRepository>
174+
<id>spring-snapshots</id>
175+
<url>http://repo.spring.io/snapshot</url>
176+
</pluginRepository>
177+
<pluginRepository>
178+
<id>spring-milestones</id>
179+
<url>http://repo.spring.io/milestone</url>
180+
</pluginRepository>
181+
</pluginRepositories>
182+
183+
</project>

0 commit comments

Comments
 (0)