Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facing issue with Microservice using netflix zuul in SpringBoot


APPLICATION FAILED TO START


Description:

The bean 'counterFactory', defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulServerAutoConfiguration$ZuulCounterFactoryConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulServerAutoConfiguration$ZuulMetricsConfiguration.class] and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

like image 854
Prudhvi Gudala Avatar asked Aug 21 '18 16:08

Prudhvi Gudala


Video Answer


1 Answers

Use the Spring Boot version of 2.0.x...they haven't introduced the Zuul support for 2.1.x

Thanks

like image 154
Bhanuj Avatar answered Sep 19 '22 14:09

Bhanuj