File tree Expand file tree Collapse file tree 4 files changed +64
-0
lines changed
java/com/csaba79coder/discoveryserver Expand file tree Collapse file tree 4 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5
+ <modelVersion >4.0.0</modelVersion >
6
+ <parent >
7
+ <groupId >com.csaba79coder</groupId >
8
+ <artifactId >best-protocol</artifactId >
9
+ <version >3.0.2</version >
10
+ </parent >
11
+
12
+ <artifactId >discovery-server</artifactId >
13
+
14
+ <properties >
15
+ <java .version>17</java .version>
16
+ <maven .compiler.source>17</maven .compiler.source>
17
+ <maven .compiler.target>17</maven .compiler.target>
18
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
19
+ <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
20
+ <version >${project.version}</version >
21
+ </properties >
22
+
23
+ <dependencies >
24
+ <dependency >
25
+ <groupId >org.springframework.cloud</groupId >
26
+ <artifactId >spring-cloud-starter-netflix-eureka-server</artifactId >
27
+ </dependency >
28
+ <dependency >
29
+ <groupId >org.springframework.boot</groupId >
30
+ <artifactId >spring-boot-autoconfigure</artifactId >
31
+ </dependency >
32
+ </dependencies >
33
+
34
+ </project >
Original file line number Diff line number Diff line change
1
+ package com .csaba79coder .discoveryserver ;
2
+
3
+ import org .springframework .boot .SpringApplication ;
4
+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
+ import org .springframework .cloud .netflix .eureka .server .EnableEurekaServer ;
6
+
7
+ @ SpringBootApplication
8
+ @ EnableEurekaServer
9
+ public class DiscoveryServerApplication {
10
+
11
+ public static void main (String [] args ) {
12
+ SpringApplication .run (DiscoveryServerApplication .class , args );
13
+ }
14
+ }
Original file line number Diff line number Diff line change
1
+ eureka.instance.hostname =localhost
2
+ eureka.client.register-with-eureka =false
3
+ eureka.client.fetch-registry =false
4
+ eureka.client.serviceUrl.defaultZone =http://localhost:8761/eureka
5
+ server.port =8761
6
+
7
+ spring.application.name =discovery-server
Original file line number Diff line number Diff line change 18
18
<modules >
19
19
<module >api-contract</module >
20
20
<module >government-service</module >
21
+ <module >discovery-server</module >
21
22
</modules >
22
23
23
24
<properties >
27
28
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
28
29
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
29
30
<project .version>2.3.0-SNAPSHOT</project .version>
31
+ <spring-cloud .version>2022.0.2</spring-cloud .version>
30
32
</properties >
31
33
32
34
<dependencyManagement >
36
38
<artifactId >best-protocol</artifactId >
37
39
<version >3.0.2</version >
38
40
</dependency >
41
+ <dependency >
42
+ <groupId >org.springframework.cloud</groupId >
43
+ <artifactId >spring-cloud-dependencies</artifactId >
44
+ <version >${spring-cloud.version} </version >
45
+ <type >pom</type >
46
+ <scope >import</scope >
47
+ </dependency >
39
48
</dependencies >
40
49
</dependencyManagement >
41
50
You can’t perform that action at this time.
0 commit comments