An error is reported in the spring cloud setup. Autowired appears and Eureka cannot be registered

  The error report is shown in the figure above,

POM file plus

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

Just restart this,

Just add this annotation to the startup class

@EnableEurekaClient

Read More: