解决The bean 'proxyRequestHelper', defined in class path resource [org/springframework/cloud/报错
2018-12-13 10:55
1621 查看
1.Springboot版本与springCloud版本不是在统一范围报错
控制台报如下错误:
Description:
The bean 'proxyRequestHelper', defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulProxyAutoConfiguration$NoActuatorConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulProxyAutoConfiguration$EndpointConfiguration.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
原因分析:
此时用的版本springboot的版本是2.1.1.RELEASE,而用的springCloud用的版本是Finchley.RC1;
改正:springboot的版本2.1.1.RELEASE不变,springCloud用版本是Greenwich.M3,
springboot的版本2.0.1.RELEASE对应的springColud版本是Finchley.RC1;
相关文章推荐
- The bean 'counterFactory', defined in class path resource [org/springframework/cloud/netflix/zuul/Zu
- Error creating bean with name ‘…’defined in class path resource[applicationContext2.xml]:问题及其解决方法
- Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource
- IDEA 启动 Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-m
- Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationCon
- creating bean with name 'dataSource' defined in class path resource错误的解决办法
- Spring 整合Hibernate报错:Error creating bean with name 'dataSource' defined in class path resource
- 报错:Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error
- Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml
- Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml
- Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource
- SpringBoot异常:Error creating bean with name 'entityManagerFactory' defined in class path resource
- org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resource
- Invalid bean definition with name 'dataSource' defined in class path resource [spring-mybatis.xml]:
- Spring MVC集成thymeleaf时提示:defined in ServletContext resource [/WEB-INF/SrpingMVCTest-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException
- ssm出现Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/applic
- 控制台报错:Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-er
- 【解决】SpringMVC整合Shiro之 Error creating bean with name 'shiroFilter' defined in class path resource...
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource