Explorar el Código

提交父工程和base基础工程

zhaoliang hace 4 meses
padre
commit
40a6706250

+ 8 - 0
.idea/.gitignore

@@ -0,0 +1,8 @@
1
+# Default ignored files
2
+/shelf/
3
+/workspace.xml
4
+# Editor-based HTTP Client requests
5
+/httpRequests/
6
+# Datasource local storage ignored files
7
+/dataSources/
8
+/dataSources.local.xml

+ 15 - 0
.idea/gradle.xml

@@ -0,0 +1,15 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="GradleSettings">
4
+    <option name="linkedExternalProjectsSettings">
5
+      <GradleProjectSettings>
6
+        <option name="externalProjectPath" value="$PROJECT_DIR$/xuecheng-plus-parent" />
7
+        <option name="modules">
8
+          <set>
9
+            <option value="$PROJECT_DIR$/xuecheng-plus-parent" />
10
+          </set>
11
+        </option>
12
+      </GradleProjectSettings>
13
+    </option>
14
+  </component>
15
+</project>

+ 10 - 0
.idea/misc.xml

@@ -0,0 +1,10 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ExternalStorageConfigurationManager" enabled="true" />
4
+  <component name="FrameworkDetectionExcludesConfiguration">
5
+    <file type="web" url="file://$PROJECT_DIR$/xuecheng-plus-parent" />
6
+  </component>
7
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
8
+    <output url="file://$PROJECT_DIR$/out" />
9
+  </component>
10
+</project>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/.idea/xuecheng-plus-project.iml" filepath="$PROJECT_DIR$/.idea/xuecheng-plus-project.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="" vcs="Git" />
5
+  </component>
6
+</project>

+ 9 - 0
.idea/xuecheng-plus-project.iml

@@ -0,0 +1,9 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+    <exclude-output />
5
+    <content url="file://$MODULE_DIR$" />
6
+    <orderEntry type="inheritedJdk" />
7
+    <orderEntry type="sourceFolder" forTests="false" />
8
+  </component>
9
+</module>

+ 90 - 0
xuecheng-plus-base/pom.xml

@@ -0,0 +1,90 @@
1
+<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2
+    <modelVersion>4.0.0</modelVersion>
3
+    <parent>
4
+        <groupId>com.xuecheng</groupId>
5
+        <artifactId>xuecheng-plus-parent</artifactId>
6
+        <version>0.0.1-SNAPSHOT</version>
7
+        <!-- 基于当前pom.xml找到父工程 -->
8
+        <relativePath>../xuecheng-plus-parent</relativePath>
9
+    </parent>
10
+    <artifactId>xuecheng-plus-base</artifactId>
11
+    <dependencies>
12
+        <dependency>
13
+            <groupId>org.projectlombok</groupId>
14
+            <artifactId>lombok</artifactId>
15
+        </dependency>
16
+        <dependency>
17
+            <groupId>org.apache.commons</groupId>
18
+            <artifactId>commons-lang3</artifactId>
19
+        </dependency>
20
+        <!--  fast Json  -->
21
+        <dependency>
22
+            <groupId>com.alibaba</groupId>
23
+            <artifactId>fastjson</artifactId>
24
+        </dependency>
25
+        <!--  servlet Api 依赖  -->
26
+        <dependency>
27
+            <groupId>javax.servlet</groupId>
28
+            <artifactId>javax.servlet-api</artifactId>
29
+            <scope>provided</scope>
30
+        </dependency>
31
+        <!--  通用组件  -->
32
+        <dependency>
33
+            <groupId>commons-lang</groupId>
34
+            <artifactId>commons-lang</artifactId>
35
+        </dependency>
36
+        <dependency>
37
+            <groupId>commons-codec</groupId>
38
+            <artifactId>commons-codec</artifactId>
39
+            <version>1.11</version>
40
+        </dependency>
41
+        <dependency>
42
+            <groupId>io.swagger</groupId>
43
+            <artifactId>swagger-annotations</artifactId>
44
+        </dependency>
45
+        <dependency>
46
+            <groupId>org.springframework</groupId>
47
+            <artifactId>spring-web</artifactId>
48
+        </dependency>
49
+        <dependency>
50
+            <groupId>org.springframework.boot</groupId>
51
+            <artifactId>spring-boot-starter-validation</artifactId>
52
+        </dependency>
53
+        <dependency>
54
+            <groupId>org.springframework.boot</groupId>
55
+            <artifactId>spring-boot-starter-log4j2</artifactId>
56
+        </dependency>
57
+        <!-- 根据扩展名取mimetype -->
58
+        <dependency>
59
+            <groupId>com.j256.simplemagic</groupId>
60
+            <artifactId>simplemagic</artifactId>
61
+            <version>1.17</version>
62
+        </dependency>
63
+        <dependency>
64
+            <groupId>org.apache.commons</groupId>
65
+            <artifactId>commons-lang3</artifactId>
66
+        </dependency>
67
+        <dependency>
68
+            <groupId>com.google.zxing</groupId>
69
+            <artifactId>core</artifactId>
70
+            <version>3.3.3</version>
71
+        </dependency>
72
+        <dependency>
73
+            <groupId>com.google.zxing</groupId>
74
+            <artifactId>javase</artifactId>
75
+            <version>3.3.3</version>
76
+        </dependency>
77
+        <dependency>
78
+            <groupId>com.fasterxml.jackson.module</groupId>
79
+            <artifactId>jackson-module-parameter-names</artifactId>
80
+        </dependency>
81
+        <dependency>
82
+            <groupId>com.fasterxml.jackson.datatype</groupId>
83
+            <artifactId>jackson-datatype-jdk8</artifactId>
84
+        </dependency>
85
+        <dependency>
86
+            <groupId>com.fasterxml.jackson.datatype</groupId>
87
+            <artifactId>jackson-datatype-jsr310</artifactId>
88
+        </dependency>
89
+    </dependencies>
90
+</project>

+ 244 - 0
xuecheng-plus-parent/pom.xml

@@ -0,0 +1,244 @@
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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4
+    <modelVersion>4.0.0</modelVersion>
5
+    <groupId>com.xuecheng</groupId>
6
+    <artifactId>xuecheng-plus-parent</artifactId>
7
+    <version>0.0.1-SNAPSHOT</version>
8
+    <name>xuecheng-plus-parent</name>
9
+    <description>xuecheng-plus-parent</description>
10
+    <packaging>pom</packaging>
11
+
12
+    <properties>
13
+        <java.version>1.8</java.version>
14
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
16
+        <spring-boot.version>2.3.7.RELEASE</spring-boot.version>
17
+        <spring-cloud.version>Hoxton.SR9</spring-cloud.version>
18
+        <org.mapstruct.version>1.3.1.Final</org.mapstruct.version>
19
+        <spring-cloud-alibaba.version>2.2.6.RELEASE</spring-cloud-alibaba.version>
20
+        <org.projectlombok.version>1.18.8</org.projectlombok.version>
21
+        <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
22
+        <fastjson.version>1.2.83</fastjson.version>
23
+        <druid-spring-boot-starter.version>1.2.8</druid-spring-boot-starter.version>
24
+        <mysql-connector-java.version>8.0.30</mysql-connector-java.version>
25
+        <mybatis-plus-boot-starter.version>3.4.1</mybatis-plus-boot-starter.version>
26
+        <commons-lang.version>2.6</commons-lang.version>
27
+        <minio.version>8.4.3</minio.version>
28
+        <xxl-job-core.version>2.3.1</xxl-job-core.version>
29
+        <swagger-annotations.version>1.5.20</swagger-annotations.version>
30
+        <commons-lang3.version>3.10</commons-lang3.version>
31
+        <okhttp.version>4.8.1</okhttp.version>
32
+        <swagger-spring-boot-starter.version>1.9.0.RELEASE</swagger-spring-boot-starter.version>
33
+        <elasticsearch.version>7.12.1</elasticsearch.version>
34
+    </properties>
35
+
36
+
37
+    <dependencyManagement>
38
+        <dependencies>
39
+
40
+            <dependency>
41
+                <groupId>org.springframework.cloud</groupId>
42
+                <artifactId>spring-cloud-dependencies</artifactId>
43
+                <version>${spring-cloud.version}</version>
44
+                <type>pom</type>
45
+                <scope>import</scope>
46
+            </dependency>
47
+            <dependency>
48
+                <groupId>org.springframework.boot</groupId>
49
+                <artifactId>spring-boot-dependencies</artifactId>
50
+                <version>${spring-boot.version}</version>
51
+                <type>pom</type>
52
+                <scope>import</scope>
53
+            </dependency>
54
+            <dependency>
55
+                <groupId>com.alibaba.cloud</groupId>
56
+                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
57
+                <version>${spring-cloud-alibaba.version}</version>
58
+                <type>pom</type>
59
+                <scope>import</scope>
60
+            </dependency>
61
+            <!-- lombok,简化类的构建-->
62
+            <dependency>
63
+                <groupId>org.projectlombok</groupId>
64
+                <artifactId>lombok</artifactId>
65
+                <version>${org.projectlombok.version}</version>
66
+            </dependency>
67
+            <!-- mapstruct 代码生成器,简化java bean之间的映射 -->
68
+            <dependency>
69
+                <groupId>org.mapstruct</groupId>
70
+                <artifactId>mapstruct-jdk8</artifactId>
71
+                <version>${org.mapstruct.version}</version>
72
+            </dependency>
73
+            <dependency>
74
+                <groupId>org.mapstruct</groupId>
75
+                <artifactId>mapstruct-processor</artifactId>
76
+                <version>${org.mapstruct.version}</version>
77
+            </dependency>
78
+            <dependency>
79
+                <groupId>io.swagger</groupId>
80
+                <artifactId>swagger-annotations</artifactId>
81
+                <version>${swagger-annotations.version}</version>
82
+            </dependency>
83
+            <!-- Servlet 容器管理 -->
84
+            <dependency>
85
+                <groupId>javax.servlet</groupId>
86
+                <artifactId>javax.servlet-api</artifactId>
87
+                <version>${javax.servlet-api.version}</version>
88
+                <scope>provided</scope>
89
+            </dependency>
90
+            <!-- fastjson ,json解析工具 -->
91
+            <dependency>
92
+                <groupId>com.alibaba</groupId>
93
+                <artifactId>fastjson</artifactId>
94
+                <version>${fastjson.version}</version>
95
+            </dependency>
96
+            <!-- druid 连接池管理 -->
97
+            <dependency>
98
+                <groupId>com.alibaba</groupId>
99
+                <artifactId>druid-spring-boot-starter</artifactId>
100
+                <version>${druid-spring-boot-starter.version}</version>
101
+            </dependency>
102
+
103
+            <!-- mySQL数据库驱动包管理 -->
104
+            <dependency>
105
+                <groupId>mysql</groupId>
106
+                <artifactId>mysql-connector-java</artifactId>
107
+                <version>${mysql-connector-java.version}</version>
108
+            </dependency>
109
+            <!-- mybatis plus 集成Spring Boot启动器 -->
110
+            <dependency>
111
+                <groupId>com.baomidou</groupId>
112
+                <artifactId>mybatis-plus-boot-starter</artifactId>
113
+                <version>${mybatis-plus-boot-starter.version}</version>
114
+            </dependency>
115
+
116
+            <!-- mybatis plus 代码生成器 -->
117
+            <dependency>
118
+                <groupId>com.baomidou</groupId>
119
+                <artifactId>mybatis-plus-generator</artifactId>
120
+                <version>${mybatis-plus-boot-starter.version}</version>
121
+            </dependency>
122
+
123
+            <!-- 工具类管理 -->
124
+            <dependency>
125
+                <groupId>commons-lang</groupId>
126
+                <artifactId>commons-lang</artifactId>
127
+                <version>${commons-lang.version}</version>
128
+            </dependency>
129
+            <!-- 分布式文件系统 minIO的客户端API包 -->
130
+            <dependency>
131
+                <groupId>io.minio</groupId>
132
+                <artifactId>minio</artifactId>
133
+                <version>${minio.version}</version>
134
+            </dependency>
135
+            <!--google推荐的一套工具类库-->
136
+            <dependency>
137
+                <groupId>com.google.guava</groupId>
138
+                <artifactId>guava</artifactId>
139
+                <version>25.0-jre</version>
140
+            </dependency>
141
+            <!--分布式任务调度-->
142
+            <dependency>
143
+                <groupId>com.xuxueli</groupId>
144
+                <artifactId>xxl-job-core</artifactId>
145
+                <version>${xxl-job-core.version}</version>
146
+            </dependency>
147
+            <!--Spring boot单元测试-->
148
+            <dependency>
149
+                <groupId>org.springframework.boot</groupId>
150
+                <artifactId>spring-boot-starter-test</artifactId>
151
+                <version>${spring-boot.version}</version>
152
+                <scope>test</scope>
153
+                <exclusions>
154
+                    <exclusion>
155
+                        <groupId>org.junit.vintage</groupId>
156
+                        <artifactId>junit-vintage-engine</artifactId>
157
+                    </exclusion>
158
+                </exclusions>
159
+            </dependency>
160
+            <dependency>
161
+                <groupId>com.squareup.okhttp3</groupId>
162
+                <artifactId>okhttp</artifactId>
163
+                <version>${okhttp.version}</version>
164
+            </dependency>
165
+            <dependency>
166
+                <groupId>org.apache.commons</groupId>
167
+                <artifactId>commons-lang3</artifactId>
168
+                <version>${commons-lang3.version}</version>
169
+            </dependency>
170
+            <dependency>
171
+                <groupId>com.spring4all</groupId>
172
+                <artifactId>swagger-spring-boot-starter</artifactId>
173
+                <version>${swagger-spring-boot-starter.version}</version>
174
+            </dependency>
175
+            <dependency>
176
+                <groupId>org.elasticsearch.client</groupId>
177
+                <artifactId>elasticsearch-rest-high-level-client</artifactId>
178
+                <version>${elasticsearch.version}</version>
179
+            </dependency>
180
+
181
+            <dependency>
182
+                <groupId>org.elasticsearch</groupId>
183
+                <artifactId>elasticsearch</artifactId>
184
+                <version>${elasticsearch.version}</version>
185
+            </dependency>
186
+        </dependencies>
187
+
188
+    </dependencyManagement>
189
+
190
+
191
+    <build>
192
+        <finalName>${project.name}</finalName>
193
+        <!--编译打包过虑配置-->
194
+        <resources>
195
+            <resource>
196
+                <directory>src/main/resources</directory>
197
+                <filtering>true</filtering>
198
+                <includes>
199
+                    <include>**/*</include>
200
+                </includes>
201
+            </resource>
202
+            <resource>
203
+                <directory>src/main/java</directory>
204
+                <includes>
205
+                    <include>**/*.xml</include>
206
+                </includes>
207
+            </resource>
208
+        </resources>
209
+        <plugins>
210
+            <plugin>
211
+                <groupId>org.apache.maven.plugins</groupId>
212
+                <artifactId>maven-compiler-plugin</artifactId>
213
+                <version>3.8.1</version>
214
+                <configuration>
215
+                    <!--指定项目源码jdk的版本-->
216
+                    <source>1.8</source>
217
+                    <!--指定项目编译后的jdk的版本-->
218
+                    <target>1.8</target>
219
+                    <!--配置注解预编译-->
220
+                    <annotationProcessorPaths>
221
+                        <path>
222
+                            <groupId>org.projectlombok</groupId>
223
+                            <artifactId>lombok</artifactId>
224
+                            <version>${org.projectlombok.version}</version>
225
+                        </path>
226
+                    </annotationProcessorPaths>
227
+                </configuration>
228
+            </plugin>
229
+
230
+            <!--责处理项目资源文件并拷贝到输出目录,如果有额外的资源文件目录则需要配置-->
231
+            <plugin>
232
+                <groupId>org.apache.maven.plugins</groupId>
233
+                <artifactId>maven-resources-plugin</artifactId>
234
+                <version>3.3.0</version>
235
+                <configuration>
236
+                    <encoding>utf-8</encoding>
237
+                    <!--使用默认分隔符,resource中可以使用分割符定义过虑的路径-->
238
+                    <useDefaultDelimiters>true</useDefaultDelimiters>
239
+                </configuration>
240
+            </plugin>
241
+        </plugins>
242
+    </build>
243
+
244
+</project>

+ 21 - 0
xuecheng-plus-parent/xuecheng-plus-parent.iml

@@ -0,0 +1,21 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="FacetManager">
4
+    <facet type="Spring" name="Spring">
5
+      <configuration />
6
+    </facet>
7
+  </component>
8
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
9
+    <output url="file://$MODULE_DIR$/target/classes" />
10
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
11
+    <content url="file://$MODULE_DIR$">
12
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
13
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
14
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
15
+      <sourceFolder url="file://$MODULE_DIR$/target/generated-sources/annotations" isTestSource="false" generated="true" />
16
+      <excludeFolder url="file://$MODULE_DIR$/target" />
17
+    </content>
18
+    <orderEntry type="inheritedJdk" />
19
+    <orderEntry type="sourceFolder" forTests="false" />
20
+  </component>
21
+</module>