小记:
主要是为了迎合公司微服务项目,同时是对已有技术的实践整理。
- 使用
spring-boot-maven-plugin
构建构建jar包; - 使用
maven-surefire-plugin
跳过测试类; - 使用
maven-antrun-plugin
插件实现jar包的拷贝;
一、测试环境
springboot:1.5.6.RELEASE
springcloud:Edgware.SR3
eclipse:eclipse-jee-2018-09-win32-x86_64
jdk、maven环境
二、项目结构
sp-cloud
|-database //数据库对应版本脚本
|-v1.0
|-create_v1.0.sql
|-upgrade_v1.0.sql
|-sp_common //公共jar包、公共工具包
|-pom.xml
|-discovery //服务发现
|-pom.xml
|-config //配置中心
|-pom.xml
|-gateway //分发网关
|-pom.xml
|-gateway-api //rest api接入网关
|-pom.xml
|-components //具体的业务服务
|-service-a
|-pom.xml
|-service-b
|-pom.xml