其他分享
首页 > 其他分享> > SpringCloud注入RestTemplate报错

SpringCloud注入RestTemplate报错

作者:互联网

the bean 'restTemplate', defined in com.dtx.order.OrderLoadBalancerApplication, could not be registered.

A bean with that name has already been defined in class path resource [com/dtx/order/OrderNacosApplication.class] and overriding is disabled.

原因:已经注入了一个相同的类

要在yml配置

标签:defined,SpringCloud,RestTemplate,order,bean,dtx,报错,com,class
来源: https://www.cnblogs.com/dtx123/p/15175024.html