【修改】修改包结构,让微服务代码仅存于一个模块里。

This commit is contained in:
zer0Black
2021-03-15 13:51:43 +08:00
parent 174854fc61
commit ef97c02a13
16 changed files with 21 additions and 17 deletions
+5 -4
View File
@@ -16,10 +16,11 @@
<groupId>com.jero.boot</groupId>
<artifactId>jero-boot-base-core</artifactId>
</dependency>
<!-- 如果需要微服务版本,则引入微服务启动依赖 starter
<dependency>
<!-- 如果需要微服务版本,则引入微服务启动依赖 starte
<dependency>
<groupId>com.jero.boot</groupId>
<artifactId>jero-boot-starter-cloud</artifactId>
</dependency> -->
<artifactId>jero-cloud-feign-config</artifactId>
</dependency>
-->
</dependencies>
</project>
-1
View File
@@ -16,7 +16,6 @@
</properties>
<modules>
<module>jero-boot-starter-cloud</module>
<module>jero-boot-starter-job</module>
<module>jero-boot-starter-lock</module>
<module>jero-boot-starter-rabbitmq</module>
@@ -3,12 +3,13 @@
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>jero-boot-starter</artifactId>
<artifactId>jero-cloud-module</artifactId>
<groupId>com.jero.boot</groupId>
<version>2.4.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jero-boot-starter-cloud</artifactId>
<artifactId>jero-cloud-feign-config</artifactId>
<dependencies>
<dependency>
@@ -14,7 +14,7 @@
<!-- jero 微服务基础依赖-->
<dependency>
<groupId>com.jero.boot</groupId>
<artifactId>jero-boot-starter-cloud</artifactId>
<artifactId>jero-cloud-feign-config</artifactId>
<exclusions>
<exclusion>
<groupId>com.jero.boot</groupId>
@@ -12,10 +12,10 @@
<description>System项目微服务启动</description>
<dependencies>
<!-- jero-boot-starter-cloud依赖 -->
<!-- jero-cloud-feign-config feign 依赖 -->
<dependency>
<groupId>com.jero.boot</groupId>
<artifactId>jero-boot-starter-cloud</artifactId>
<artifactId>jero-cloud-feign-config</artifactId>
<!--system模块需要排除jero-system-cloud-api-->
<exclusions>
<exclusion>
@@ -2,6 +2,7 @@ package com.jero.modules.cloud.feign.controller;
import cn.hutool.core.util.RandomUtil;
import com.jero.starter.cloud.feign.impl.JeroFeignService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.jero.boot.starter.rabbitmq.client.RabbitMqClient;
@@ -10,7 +11,6 @@ import com.jero.common.base.BaseMap;
import com.jero.modules.cloud.constant.CloudConstant;
import com.jero.modules.cloud.feign.feign.JeroTestClient;
import com.jero.modules.cloud.feign.feign.JeroTestClientDyn;
import com.jero.starter.cloud.feign.impl.JeroFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
+1
View File
@@ -16,6 +16,7 @@
<module>jero-cloud-gateway</module>
<module>jero-cloud-monitor</module>
<module>jero-cloud-xxljob</module>
<module>jero-cloud-feign-config</module>
</modules>
</project>
+8 -6
View File
@@ -51,12 +51,14 @@
<module>jero-boot-base</module>
<module>jero-boot-module-demo</module>
<module>jero-boot-module-system</module>
<!-- &lt;!&ndash; 需要微服务,请打开注释-->
<module>jero-boot-starter</module>
<module>jero-cloud-module</module>
<module>jero-boot-starter</module>
<!-- 单体应用启动类 -->
<module>jero-boot-single-startup</module>
<!-- &ndash;&gt;-->
<!-- 需要微服务,请打开注释吗,并刷新maven
<module>jero-cloud-module</module>
-->
</modules>
<distributionManagement>
@@ -164,7 +166,7 @@
<!--微服务模块-->
<dependency>
<groupId>com.jero.boot</groupId>
<artifactId>jero-boot-starter-cloud</artifactId>
<artifactId>jero-cloud-feign-config</artifactId>
<version>${jero.version}</version>
</dependency>