k0521klb 发表于 2022-1-2 11:56:58

linux maven构建,启动cloud-gateway 出现 FeignConfig 重复注册


使用cloud moshi启动cloud-gateway

linux maven构建出现 FeignConfig 重复注册
但是在开发环境 的window 电脑上 maven构建的 jar是没问题的,jar 包打好后放到 linux 也是正常启动

求指导是啥原因

错误信息如下:
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'feignDecoder' defined in class path resource : Cannot register bean definition ; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=feignConfig; factoryMethodName=feignDecoder; initMethodName=null; destroyMethodName=(inferred); defined in class path resource ] for bean 'feignDecoder': There is already ; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.cloud.openfeign.FeignClientsConfiguration; factoryMethodName=feignDecoder; initMethodName=null; destroyMethodName=(inferred); defined in class path resource ] bound.

k0521klb 发表于 2022-2-2 13:36:06

咋没人回复,求指导

大狗 发表于 2022-2-22 09:39:19

我也是遇到这个问题,不知道怎么解决,有大佬指导下吗

Charles_java 发表于 2022-10-29 13:22:04

请问楼主问题解决了吗,我也遇到相同问题怎么配置都没用
页: [1]
查看完整版本: linux maven构建,启动cloud-gateway 出现 FeignConfig 重复注册