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.
咋没人回复,求指导 我也是遇到这个问题,不知道怎么解决,有大佬指导下吗 请问楼主问题解决了吗,我也遇到相同问题怎么配置都没用
页:
[1]