For ‘mall-coupon‘ URL not provided. Will try picking an instance via load-balancing. org.springfram
mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
项目地址:https://gitcode.com/gh_mirrors/ma/mall

·
使用openfeign服务调用时报错:
For 'mall-coupon' URL not provided. Will try picking an instance via load-balancing.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'umsMemberController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.biienu.mallshop.member.feign.CouponAll': Unexpected exception during bean creation; nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalancer?
原因:最新版OpenFeign
不包含LoadBalancer
解决:
pom文件加入LoadBalancer
依赖:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-loadbalancer</artifactId>
<version>3.1.1</version>
</dependency>




mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
最近提交(Master分支:19 天前 )
2616ba42 - 3 小时前
97f630e5 - 26 天前
更多推荐
所有评论(0)