哎,师兄其他地方都好,这个章节真的要吐槽一下

来源:5-9 项目改造成多模块

cloverxixi

2018-12-19

重构其实花不了多少时间啊,带着改下代码很简单的啊,然后order重构后一直报错
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.

Field productClient in com.springcloud.order.controller.ClientController required a bean of type ‘com.springcloud.order.client.ProductClient’ that could not be found.
的错误,但是idea没抛红啊,就比较烦躁

写回答

2回答

廖师兄

2018-12-20

重构多模块我一定重新补上。。。

“order.client.ProductClient’ that could not be found.”idea没抛红,你刷新下pom.xml看看。

要先在product项目里mvn install的,注意groupId的名字

0
1
慕无忌2804865
根据最后一节,更新版本为2.0.2.RELEASE,但类注入失败,请看我的回答截图,谢谢
2019-07-15
共1条回复

慕无忌2804865

2019-07-15

//img.mukewang.com/szimg/5d2c892809bd7b1412440552.jpg

//img.mukewang.com/szimg/5d2c89420929976712710681.jpg

根据最后一节,更新版本为2.0.2.RELEASE,但类注入失败


0
5
廖师兄
回复
慕无忌2804865
问题会统一处理。
2019-07-18
共5条回复

SpringCloud Finchley(M2+RELEASE+SR2)微服务实战

SpringCloud组件实现微服务,【已升级Finchley.Release】

5672 学习 · 2489 问题

查看课程