package com.google.mbdebian.springboot.playground.microservices.tutorial;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringMicroservicesEurekaServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringMicroservicesEurekaServerApplication.class, args);
	}
}

package com.google.mbdebian.springboot.playground.microservices.tutorial;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@SpringBootApplication
@EnableEurekaServer
public class SpringMicroservicesEurekaServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringMicroservicesEurekaServerApplication.class, args);
	}
}

enable eureka server annotation