개발 환경

Java 11, Maven, Springboot

pom.xml

...
<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
...
<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>${spring-cloud.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>
...

application.yml

server:
  port: 8761

spring:
  application:
    name: discoveryservice

# eureka에 자기자신 서비스를 등록하지 않음
eureka:
  client:
    register-with-eureka: false
    fetch-registry: false

DiscoveryserviceApplication

@SpringBootApplication
@EnableEurekaServer
public class DiscoveryserviceApplication {

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

}

Eureka Dashboard

Untitled