【修改】修改包结构,让微服务代码仅存于一个模块里。
This commit is contained in:
@@ -16,10 +16,11 @@
|
|||||||
<groupId>com.jero.boot</groupId>
|
<groupId>com.jero.boot</groupId>
|
||||||
<artifactId>jero-boot-base-core</artifactId>
|
<artifactId>jero-boot-base-core</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- 如果需要微服务版本,则引入微服务启动依赖 starter
|
<!-- 如果需要微服务版本,则引入微服务启动依赖 starte
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jero.boot</groupId>
|
<groupId>com.jero.boot</groupId>
|
||||||
<artifactId>jero-boot-starter-cloud</artifactId>
|
<artifactId>jero-cloud-feign-config</artifactId>
|
||||||
</dependency> -->
|
</dependency>
|
||||||
|
-->
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>jero-boot-starter-cloud</module>
|
|
||||||
<module>jero-boot-starter-job</module>
|
<module>jero-boot-starter-job</module>
|
||||||
<module>jero-boot-starter-lock</module>
|
<module>jero-boot-starter-lock</module>
|
||||||
<module>jero-boot-starter-rabbitmq</module>
|
<module>jero-boot-starter-rabbitmq</module>
|
||||||
|
|||||||
+3
-2
@@ -3,12 +3,13 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>jero-boot-starter</artifactId>
|
<artifactId>jero-cloud-module</artifactId>
|
||||||
<groupId>com.jero.boot</groupId>
|
<groupId>com.jero.boot</groupId>
|
||||||
<version>2.4.2</version>
|
<version>2.4.2</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>jero-boot-starter-cloud</artifactId>
|
|
||||||
|
<artifactId>jero-cloud-feign-config</artifactId>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<!-- jero 微服务基础依赖-->
|
<!-- jero 微服务基础依赖-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jero.boot</groupId>
|
<groupId>com.jero.boot</groupId>
|
||||||
<artifactId>jero-boot-starter-cloud</artifactId>
|
<artifactId>jero-cloud-feign-config</artifactId>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<groupId>com.jero.boot</groupId>
|
<groupId>com.jero.boot</groupId>
|
||||||
|
|||||||
@@ -12,10 +12,10 @@
|
|||||||
<description>System项目微服务启动</description>
|
<description>System项目微服务启动</description>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- jero-boot-starter-cloud依赖 -->
|
<!-- jero-cloud-feign-config feign 依赖 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jero.boot</groupId>
|
<groupId>com.jero.boot</groupId>
|
||||||
<artifactId>jero-boot-starter-cloud</artifactId>
|
<artifactId>jero-cloud-feign-config</artifactId>
|
||||||
<!--system模块需要排除jero-system-cloud-api-->
|
<!--system模块需要排除jero-system-cloud-api-->
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
|
|||||||
+1
-1
@@ -2,6 +2,7 @@ package com.jero.modules.cloud.feign.controller;
|
|||||||
|
|
||||||
|
|
||||||
import cn.hutool.core.util.RandomUtil;
|
import cn.hutool.core.util.RandomUtil;
|
||||||
|
import com.jero.starter.cloud.feign.impl.JeroFeignService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import com.jero.boot.starter.rabbitmq.client.RabbitMqClient;
|
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.constant.CloudConstant;
|
||||||
import com.jero.modules.cloud.feign.feign.JeroTestClient;
|
import com.jero.modules.cloud.feign.feign.JeroTestClient;
|
||||||
import com.jero.modules.cloud.feign.feign.JeroTestClientDyn;
|
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.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
<module>jero-cloud-gateway</module>
|
<module>jero-cloud-gateway</module>
|
||||||
<module>jero-cloud-monitor</module>
|
<module>jero-cloud-monitor</module>
|
||||||
<module>jero-cloud-xxljob</module>
|
<module>jero-cloud-xxljob</module>
|
||||||
|
<module>jero-cloud-feign-config</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
+8
-6
@@ -51,12 +51,14 @@
|
|||||||
<module>jero-boot-base</module>
|
<module>jero-boot-base</module>
|
||||||
<module>jero-boot-module-demo</module>
|
<module>jero-boot-module-demo</module>
|
||||||
<module>jero-boot-module-system</module>
|
<module>jero-boot-module-system</module>
|
||||||
|
<module>jero-boot-starter</module>
|
||||||
<!-- <!– 需要微服务,请打开注释-->
|
<!-- 单体应用启动类 -->
|
||||||
<module>jero-boot-starter</module>
|
|
||||||
<module>jero-cloud-module</module>
|
|
||||||
<module>jero-boot-single-startup</module>
|
<module>jero-boot-single-startup</module>
|
||||||
<!-- –>-->
|
<!-- 需要微服务,请打开注释吗,并刷新maven
|
||||||
|
<module>jero-cloud-module</module>
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
@@ -164,7 +166,7 @@
|
|||||||
<!--微服务模块-->
|
<!--微服务模块-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jero.boot</groupId>
|
<groupId>com.jero.boot</groupId>
|
||||||
<artifactId>jero-boot-starter-cloud</artifactId>
|
<artifactId>jero-cloud-feign-config</artifactId>
|
||||||
<version>${jero.version}</version>
|
<version>${jero.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user