diff --git a/mall-oms/oms-api/pom.xml b/mall-oms/oms-api/pom.xml
index bdfc502d6..3b72a525f 100644
--- a/mall-oms/oms-api/pom.xml
+++ b/mall-oms/oms-api/pom.xml
@@ -16,10 +16,7 @@
com.baomidou
mybatis-plus-boot-starter
-
- io.github.openfeign
- feign-okhttp
-
+
com.youlai
ums-api
@@ -31,6 +28,22 @@
knife4j-micro-spring-boot-starter
+
+
+ org.springframework.cloud
+ spring-cloud-starter-openfeign
+
+
+
+ io.github.openfeign
+ feign-okhttp
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-loadbalancer
+
+
diff --git a/mall-oms/oms-boot/pom.xml b/mall-oms/oms-boot/pom.xml
index aa074443e..4f67adb92 100644
--- a/mall-oms/oms-boot/pom.xml
+++ b/mall-oms/oms-boot/pom.xml
@@ -59,10 +59,15 @@
spring-boot-starter-web
-
com.alibaba.cloud
spring-cloud-starter-alibaba-nacos-discovery
+
+
+ org.springframework.cloud
+ spring-cloud-starter-netflix-ribbon
+
+
diff --git a/mall-oms/pom.xml b/mall-oms/pom.xml
index 39f9759ca..8969dc21a 100644
--- a/mall-oms/pom.xml
+++ b/mall-oms/pom.xml
@@ -27,42 +27,6 @@
common-core
${youlai.version}
-
-
-
- org.springframework.cloud
- spring-cloud-starter-openfeign
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-starter
-
-
- org.springframework.cloud
- spring-cloud-openfeign-core
-
-
- org.springframework.cloud
- spring-cloud-commons
-
-
-
-
- org.springframework.cloud
- spring-cloud-starter
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-openfeign-core
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-commons
- 2.2.6.RELEASE
-
diff --git a/mall-pms/pms-api/pom.xml b/mall-pms/pms-api/pom.xml
index a0debe4e1..1a281c5ad 100644
--- a/mall-pms/pms-api/pom.xml
+++ b/mall-pms/pms-api/pom.xml
@@ -16,19 +16,27 @@
com.baomidou
mybatis-plus-boot-starter
-
- io.github.openfeign
- feign-okhttp
-
-
- org.springframework.boot
- spring-boot-starter-data-elasticsearch
-
com.github.xiaoymin
knife4j-micro-spring-boot-starter
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-openfeign
+
+
+
+ io.github.openfeign
+ feign-okhttp
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-loadbalancer
+
diff --git a/mall-pms/pms-api/src/main/java/com/youlai/mall/pms/pojo/domain/PmsSpu.java b/mall-pms/pms-api/src/main/java/com/youlai/mall/pms/pojo/domain/PmsSpu.java
index de9f5b734..3dfcf5d7a 100644
--- a/mall-pms/pms-api/src/main/java/com/youlai/mall/pms/pojo/domain/PmsSpu.java
+++ b/mall-pms/pms-api/src/main/java/com/youlai/mall/pms/pojo/domain/PmsSpu.java
@@ -6,9 +6,6 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.youlai.common.base.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.elasticsearch.annotations.Document;
-
import java.util.List;
/**
@@ -17,10 +14,8 @@ import java.util.List;
*/
@Data
@Accessors(chain = true)
-@Document(indexName = "pms_spu", replicas = 1, shards = 1, createIndex = true)
public class PmsSpu extends BaseEntity {
- @Id
@TableId(type = IdType.AUTO)
private Long id;
private String name;
diff --git a/mall-pms/pms-boot/pom.xml b/mall-pms/pms-boot/pom.xml
index e111545a7..b262101c2 100644
--- a/mall-pms/pms-boot/pom.xml
+++ b/mall-pms/pms-boot/pom.xml
@@ -53,10 +53,20 @@
spring-boot-starter-web
-
com.alibaba.cloud
spring-cloud-starter-alibaba-nacos-discovery
+
+
+ org.springframework.cloud
+ spring-cloud-starter-netflix-ribbon
+
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-openfeign
@@ -87,6 +97,10 @@
io.seata
seata-spring-boot-starter
+
+ org.springframework.cloud
+ spring-cloud-starter-netflix-ribbon
+
diff --git a/mall-pms/pom.xml b/mall-pms/pom.xml
index 4576523e9..e403650b1 100644
--- a/mall-pms/pom.xml
+++ b/mall-pms/pom.xml
@@ -28,43 +28,6 @@
${youlai.version}
-
-
-
- org.springframework.cloud
- spring-cloud-starter-openfeign
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-starter
-
-
- org.springframework.cloud
- spring-cloud-openfeign-core
-
-
- org.springframework.cloud
- spring-cloud-commons
-
-
-
-
- org.springframework.cloud
- spring-cloud-starter
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-openfeign-core
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-commons
- 2.2.6.RELEASE
-
-
diff --git a/mall-sms/sms-api/pom.xml b/mall-sms/sms-api/pom.xml
index 85f288b94..5f973adda 100644
--- a/mall-sms/sms-api/pom.xml
+++ b/mall-sms/sms-api/pom.xml
@@ -18,11 +18,6 @@
mybatis-plus-boot-starter
-
- io.github.openfeign
- feign-okhttp
-
-
com.youlai
ums-api
@@ -39,5 +34,21 @@
com.github.xiaoymin
knife4j-micro-spring-boot-starter
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-openfeign
+
+
+
+ io.github.openfeign
+ feign-okhttp
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-loadbalancer
+
diff --git a/mall-sms/sms-boot/pom.xml b/mall-sms/sms-boot/pom.xml
index e4e4c8936..72ec2d5dd 100644
--- a/mall-sms/sms-boot/pom.xml
+++ b/mall-sms/sms-boot/pom.xml
@@ -60,10 +60,15 @@
spring-boot-starter-web
-
com.alibaba.cloud
spring-cloud-starter-alibaba-nacos-discovery
+
+
+ org.springframework.cloud
+ spring-cloud-starter-netflix-ribbon
+
+
diff --git a/mall-ums/pom.xml b/mall-ums/pom.xml
index f87cf62d1..a9e3bd7d9 100644
--- a/mall-ums/pom.xml
+++ b/mall-ums/pom.xml
@@ -27,41 +27,5 @@
common-core
${youlai.version}
-
-
- org.springframework.cloud
- spring-cloud-starter-openfeign
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-starter
-
-
- org.springframework.cloud
- spring-cloud-openfeign-core
-
-
- org.springframework.cloud
- spring-cloud-commons
-
-
-
-
- org.springframework.cloud
- spring-cloud-starter
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-openfeign-core
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-commons
- 2.2.6.RELEASE
-
-
diff --git a/mall-ums/ums-api/pom.xml b/mall-ums/ums-api/pom.xml
index 37a459edd..d3d2cb964 100644
--- a/mall-ums/ums-api/pom.xml
+++ b/mall-ums/ums-api/pom.xml
@@ -17,14 +17,25 @@
mybatis-plus-boot-starter
+
+ com.github.xiaoymin
+ knife4j-micro-spring-boot-starter
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-openfeign
+
+
io.github.openfeign
feign-okhttp
- com.github.xiaoymin
- knife4j-micro-spring-boot-starter
+ org.springframework.cloud
+ spring-cloud-starter-loadbalancer
diff --git a/mall-ums/ums-boot/pom.xml b/mall-ums/ums-boot/pom.xml
index 26add248e..ed416d6e9 100644
--- a/mall-ums/ums-boot/pom.xml
+++ b/mall-ums/ums-boot/pom.xml
@@ -51,10 +51,15 @@
spring-boot-starter-web
-
com.alibaba.cloud
spring-cloud-starter-alibaba-nacos-discovery
+
+
+ org.springframework.cloud
+ spring-cloud-starter-netflix-ribbon
+
+
diff --git a/youlai-admin/admin-api/pom.xml b/youlai-admin/admin-api/pom.xml
index 327671d0a..6eff7c3d0 100644
--- a/youlai-admin/admin-api/pom.xml
+++ b/youlai-admin/admin-api/pom.xml
@@ -21,17 +21,6 @@
mybatis-plus-boot-starter
-
- io.github.openfeign
- feign-okhttp
-
-
-
- com.youlai
- common-web
- ${youlai.version}
-
-
com.youlai
common-mybatis
@@ -43,5 +32,21 @@
knife4j-micro-spring-boot-starter
+
+
+ org.springframework.cloud
+ spring-cloud-starter-openfeign
+
+
+
+ io.github.openfeign
+ feign-okhttp
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-loadbalancer
+
+
diff --git a/youlai-admin/admin-api/src/main/java/com/youlai/admin/api/UserFeignService.java b/youlai-admin/admin-api/src/main/java/com/youlai/admin/api/UserFeignService.java
index a506bb01b..c21222722 100644
--- a/youlai-admin/admin-api/src/main/java/com/youlai/admin/api/UserFeignService.java
+++ b/youlai-admin/admin-api/src/main/java/com/youlai/admin/api/UserFeignService.java
@@ -2,7 +2,6 @@ package com.youlai.admin.api;
import com.youlai.admin.pojo.dto.UserDTO;
import com.youlai.common.result.Result;
-import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
diff --git a/youlai-admin/admin-boot/pom.xml b/youlai-admin/admin-boot/pom.xml
index 911b79618..07b29c36b 100644
--- a/youlai-admin/admin-boot/pom.xml
+++ b/youlai-admin/admin-boot/pom.xml
@@ -23,12 +23,6 @@
${youlai.version}
-
- com.youlai
- common-web
- ${youlai.version}
-
-
com.youlai
common-redis
@@ -49,6 +43,12 @@
com.alibaba.cloud
spring-cloud-starter-alibaba-nacos-discovery
+
+
+ org.springframework.cloud
+ spring-cloud-starter-netflix-ribbon
+
+
diff --git a/youlai-admin/pom.xml b/youlai-admin/pom.xml
index b4ed09fd1..88dd27922 100644
--- a/youlai-admin/pom.xml
+++ b/youlai-admin/pom.xml
@@ -28,40 +28,10 @@
${youlai.version}
-
- org.springframework.cloud
- spring-cloud-starter-openfeign
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-starter
-
-
- org.springframework.cloud
- spring-cloud-openfeign-core
-
-
- org.springframework.cloud
- spring-cloud-commons
-
-
-
-
- org.springframework.cloud
- spring-cloud-starter
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-openfeign-core
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-commons
- 2.2.6.RELEASE
+ com.youlai
+ common-web
+ ${youlai.version}
diff --git a/youlai-auth/pom.xml b/youlai-auth/pom.xml
index 4988493cb..3cd7d607a 100644
--- a/youlai-auth/pom.xml
+++ b/youlai-auth/pom.xml
@@ -16,11 +16,39 @@
+
org.springframework.cloud
spring-cloud-starter-bootstrap
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-discovery
+
+
+ org.springframework.cloud
+ spring-cloud-starter-netflix-ribbon
+
+
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-config
+
+
+
+
+ org.springframework.security.oauth.boot
+ spring-security-oauth2-autoconfigure
+
+
+
+ org.springframework.security
+ spring-security-oauth2-jose
+
+
org.springframework.boot
spring-boot-starter-web
@@ -61,30 +89,16 @@
${youlai.version}
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-discovery
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-config
-
-
- org.springframework.security.oauth.boot
- spring-security-oauth2-autoconfigure
-
-
-
- org.springframework.security
- spring-security-oauth2-jose
-
-
com.github.binarywang
weixin-java-miniapp
+
+ com.github.xiaoymin
+ knife4j-micro-spring-boot-starter
+
+
org.springframework.boot
spring-boot-configuration-processor
@@ -95,52 +109,6 @@
spring-boot-starter-actuator
-
-
- org.springframework.cloud
- spring-cloud-starter-openfeign
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-starter
-
-
- org.springframework.cloud
- spring-cloud-openfeign-core
-
-
- org.springframework.cloud
- spring-cloud-commons
-
-
-
-
- org.springframework.cloud
- spring-cloud-starter
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-openfeign-core
- 2.2.6.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-commons
- 2.2.6.RELEASE
-
-
-
- com.github.xiaoymin
- knife4j-micro-spring-boot-starter
-
-
-
- com.github.xiaoymin
- knife4j-spring-ui
-
-
diff --git a/youlai-gateway/pom.xml b/youlai-gateway/pom.xml
index 43df3730f..207876145 100644
--- a/youlai-gateway/pom.xml
+++ b/youlai-gateway/pom.xml
@@ -19,6 +19,8 @@
+
+
org.springframework.cloud
spring-cloud-starter-bootstrap
@@ -32,6 +34,17 @@
com.alibaba.cloud
spring-cloud-starter-alibaba-nacos-discovery
+
+
+ org.springframework.cloud
+ spring-cloud-starter-netflix-ribbon
+
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-loadbalancer
@@ -40,9 +53,11 @@
- org.springframework.boot
- spring-boot-configuration-processor
+ org.springframework.cloud
+ spring-cloud-starter-loadbalancer
+
+
org.springframework.security
spring-security-config
@@ -56,6 +71,7 @@
spring-security-oauth2-jose
+
com.youlai
common-core
@@ -69,18 +85,16 @@
- org.springframework.cloud
- spring-cloud-starter-loadbalancer
+ org.springframework.boot
+ spring-boot-configuration-processor
com.github.xiaoymin
knife4j-spring-boot-starter
-
-
@@ -128,13 +142,13 @@
1.0.0
-
+
diff --git a/youlai-gateway/src/main/java/com/youlai/gateway/filter/SwaggerHeaderFilter.java b/youlai-gateway/src/main/java/com/youlai/gateway/filter/SwaggerHeaderFilter.java
index acfc4b334..fe5a9cb76 100644
--- a/youlai-gateway/src/main/java/com/youlai/gateway/filter/SwaggerHeaderFilter.java
+++ b/youlai-gateway/src/main/java/com/youlai/gateway/filter/SwaggerHeaderFilter.java
@@ -1,6 +1,6 @@
package com.youlai.gateway.filter;
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.http.server.reactive.ServerHttpRequest;