一、项目介绍
系统模块
com.mingink
|--mingink-api // 接口模块
| └──mingink-api-system // 系统接口
|--mingink-common // 通用模块
| └──mingink-common-core // 系统接口
|--mingink-gateway // 网关模块【8081】
|--mingink-modules // 业务模块
| └──mingink-system // 系统服务模块【8082】
|--pom.xml // 公共依赖
技术选型
开发框架:SpringBoot、SpringCloud、OpenFeign
缓存:Redis分布式缓存 + 本地缓存
数据库:MySQL、MongoDB
网关:Gateway + Sentinel
目的
本次部署的是基于Spring Cloud的微服务项目,需要将现有的gateway网关模块和mingink-system系统服务模块分别打成Jar,并上传到CentOS云服务器进行部署。
二、打包配置工作
父模块pom.xml打包配置如下:
<build>
<finalName>MingInk</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>