-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDiscoveryServiceApplication.java
More file actions
32 lines (28 loc) · 1.22 KB
/
DiscoveryServiceApplication.java
File metadata and controls
32 lines (28 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.swyth.discoveryservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
/**
* DiscoveryServiceApplication is the entry point for the Discovery Service application.
* This application acts as a Eureka Server for service discovery, allowing microservices
* to register themselves and discover other registered services.
*
* This class is annotated with:
* - @SpringBootApplication: Indicates a Spring Boot application.
* - @EnableEurekaServer: Activates the Netflix Eureka Server for service discovery capabilities.
*
* The main method initializes and runs the Spring Boot application.
*/
@SpringBootApplication
@EnableEurekaServer
public class DiscoveryServiceApplication {
/**
* The entry point of the Discovery Service application.
* This method initializes and runs the Spring Boot application which acts as a Eureka Server for service discovery.
*
* @param args command-line arguments passed to the application.
*/
public static void main(String[] args) {
SpringApplication.run(DiscoveryServiceApplication.class, args);
}
}