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 [org/jeecg/config/FeignConfig.class]: Cannot register bean definition [Root bean: class [null]; 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 [org/jeecg/config/FeignConfig.class]] for bean 'feignDecoder': There is already [Root bean: class [null]; 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 [org/springframework/cloud/openfeign/FeignClientsConfiguration.class]] bound.