Build a new springcloud project, create a module (producer), build Eureka, and start with an error
Cause of problem:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-netflix-eureka-server</artifactId>
</dependency>
Should read:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
Similar Posts:
- Factory method ‘eurekaClient’ threw exception; nested exception is java.lang.RuntimeException: Failed to initialize DiscoveryClient!
- Springboot startup error start bean ‘eurekaautoserviceregistration’ NullPointerException
- Eureka server project startup error handling
- Spring cloud consumer feign injection error [How to Solve]
- Springcloud: gateway module startup error
- [Solved] NoSuchMethodError: org.springframework.boot.web.servlet.error.ErrorController.getErrorPath
- [Solved] org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicat…
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘configurationPropertiesBeans’ defined in class path resource
- Unable to find a single main class from the following candidates [xxx,xxx]
- [How to Solve] RestController cannot be recognized in spring boot