当前位置:网站首页>直播课堂系统02-搭建项目环境
直播课堂系统02-搭建项目环境
2022-07-23 09:25:00 【z754916067】
项目结构
其中glkt-parent是子目录,用来管理下面所有模块的。
common是公共模块的父节点。
commom_util为工具模块,所有模块都会依赖于它。
service_utils:service服务的base包,包含service服务的公共配置类,所有service模块依赖于它。
rabbit_utils:rabbitmq封装工具类
model:实体类相关模块
server-gateway:服务网关
service:api接口服务父节点
service_acl:权限管理接口服务
service_activity:优惠券api接口服务
service_live:直播课程api接口服务
service_order:订单api接口服务
service_user:用户api接口服务
service_vod:点播课程 api接口服务
service_wechat:公众号api接口服务
service-client:feign服务调用父节点
service-activity-client:优惠券api接口
service-live-client:直播课程api接口
service-order-client:订单api接口
service-user-client:用户api接口
service-vod-client:点播课程api接口
这些东西反正我也看不懂,先写着吧。
创建工程
我这边在公司,不能通过IDEA下载spring.io里面的生成,只能去网站里面直接下了。
删除src文件夹

引入依赖
pom.xml如下
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.class</groupId>
<artifactId>ggkt_parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ggkt_parent</name>
<description>Demo project for Spring Boot</description>
<properties>
<skipTests>true</skipTests>
<java.version>1.8</java.version>
<cloud.version>Hoxton.RELEASE</cloud.version>
<alibaba.version>2.2.0.RELEASE</alibaba.version>
<mybatis-plus.version>3.4.1</mybatis-plus.version>
<mysql.version>5.1.46</mysql.version>
<swagger.version>2.9.2</swagger.version>
<jwt.version>0.7.0</jwt.version>
<fastjson.version>1.2.29</fastjson.version>
<httpclient.version>4.5.1</httpclient.version>
<easyexcel.version>2.2.0-beta2</easyexcel.version>
<aliyun.version>4.5.14</aliyun.version>
<jodatime.version>2.10.1</jodatime.version>
<jwt.version>0.7.0</jwt.version>
<xxl-job.version>2.3.0</xxl-job.version>
<aliyun.oss.version>3.9.0</aliyun.oss.version>
</properties>
<!--配置dependencyManagement锁定依赖的版本-->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>${alibaba.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--mybatis-plus 持久层-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>2.0.8</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>${jwt.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>${easyexcel.version}</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<version>${aliyun.version}</version>
</dependency>
<!--aliyunOSS-->
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>${aliyun.oss.version}</version>
</dependency>
<!--日期时间工具-->
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>${jodatime.version}</version>
</dependency>
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>${xxl-job.version}</version>
</dependency>
<!--swagger-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>${swagger.version}</version>
</dependency>
<!--swagger ui-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
创建model模块


model模块引入依赖
在model的pom.xml下引入
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<artifactId>ggkt_parent</artifactId>
<groupId>com.class</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!--mybatis-plus-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<scope>provided </scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<scope>provided </scope>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<!--在引用时请在maven中央仓库搜索2.X最新版本号-->
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
<scope>provided </scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<scope>provided </scope>
</dependency>
<!--创建索引库的-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
<scope>provided </scope>
</dependency>
</dependencies>
<modelVersion>4.0.0</modelVersion>
<artifactId>model</artifactId>
</project>
边栏推荐
- CSDN writing method (II)
- Program design of dot matrix Chinese character display of basic 51 single chip microcomputer
- 因为资源限制,导致namenode启动失败,报错unable to create new native thread
- Spotlight light box JS plug-in full screen enlarged picture
- Several hole filling methods of point cloud (mesh) (1)
- CPU, memory, disk speed comparison
- npm warn config global `--global`, `--local` are deprecated. use `--location=global` instead.
- ValidationError: Invalid options object. Dev Server has been initialized using an options object th
- 第2章 基礎查詢與排序
- AI acceleration gesture recognition experience based on efr32mg24
猜你喜欢
![[paper notes] mobile robot navigation method based on hierarchical depth reinforcement learning](/img/3d/6486f836535e5a1fa1a362d5214d77.png)
[paper notes] mobile robot navigation method based on hierarchical depth reinforcement learning

【WinForm】关于截图识别数字并计算的桌面程序实现方案

Official wechat product! Applet automation framework minium sharing Preview

什么是Per-Title编码?

基于nextcloud构建个人网盘

【测试平台开发】21. 完成发送接口请求显示响应头信息

OpenHarmony南向学习笔记——Hi3861+HC-SR04超声波检测

Wacom firmware update error 123, digital board driver cannot be updated

【小程序自动化Minium】一、框架介绍和环境搭建

Uni app knowledge points and records of problems and solutions encountered in the project
随机推荐
C language implementation of classroom random roll call system
[download attached] several scripts commonly used in penetration testing that are worth collecting
js日历样式饼图统计插件
全志F1C100S/F1C200S学习笔记(13)——LVGL移植
JS software unloading prompt expression changes with the mouse JS special effect
关于flex布局justify-content:space-around最后一个不对齐的解决方法和为什么这样子解决是讨论
【C語言】猜數字小遊戲+關機小程序
Towhee weekly model
Which is a good fixed asset management system? What are the fixed asset management platforms?
建议思源笔记能够兼容第三方同步盘
Is it risky and safe to open a mobile stock account?
Spotlight light box JS plug-in full screen enlarged picture
Optimize Huawei ECs to use key login
【我可以做你的第一个项目吗?】GZIP的细节简介和模拟实现
10年软件测试工程师经验,很茫然....
webstrom ERROR in [eslint] ESLint is not a constructor
因为资源限制,导致namenode启动失败,报错unable to create new native thread
Cool code rain dynamic background registration page
【测试平台开发】21. 完成发送接口请求显示响应头信息
云呐-如何加强固定资产管理?怎么加强固定资产管理?