admin管理员组

文章数量:1794759

Consider defining a bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs‘

Consider defining a bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs‘

解决思路

1.出现这种错误可能是缺少相应的依赖

<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>

本文标签: typebeandefiningAbstractDiscoveryClientOptionalArgsdiscovery