Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
M
Micro_Services
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ali.saeed
Micro_Services
Commits
844a9c03
Commit
844a9c03
authored
Apr 26, 2024
by
Ali Saeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Service Discovery Application (Eureks Server)
parent
04b1b432
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
164 additions
and
4 deletions
+164
-4
compiler.xml
.idea/compiler.xml
+2
-0
encodings.xml
.idea/encodings.xml
+2
-0
jarRepositories.xml
.idea/jarRepositories.xml
+5
-0
pom.xml
invoicing-service/pom.xml
+1
-4
pom.xml
pom.xml
+1
-0
application.log
service-discovery/logs/application.log
+0
-0
pom.xml
service-discovery/pom.xml
+81
-0
ServiceDiscoveryApplication.java
...rc/main/java/org/example/ServiceDiscoveryApplication.java
+15
-0
application.properties
service-discovery/src/main/resources/application.properties
+3
-0
logback.xml
service-discovery/src/main/resources/logback.xml
+25
-0
application.properties
service-discovery/target/classes/application.properties
+3
-0
logback.xml
service-discovery/target/classes/logback.xml
+25
-0
ServiceDiscoveryApplication.class
...get/classes/org/example/ServiceDiscoveryApplication.class
+0
-0
pom.xml
users-service/pom.xml
+1
-0
No files found.
.idea/compiler.xml
View file @
844a9c03
...
...
@@ -8,12 +8,14 @@
<outputRelativeToContentRoot
value=
"true"
/>
<module
name=
"users-service"
/>
<module
name=
"invoicing-service"
/>
<module
name=
"service-discovery"
/>
</profile>
</annotationProcessing>
</component>
<component
name=
"JavacSettings"
>
<option
name=
"ADDITIONAL_OPTIONS_OVERRIDE"
>
<module
name=
"invoicing-service"
options=
"-parameters"
/>
<module
name=
"service-discovery"
options=
"-parameters"
/>
<module
name=
"users-service"
options=
"-parameters"
/>
</option>
</component>
...
...
.idea/encodings.xml
View file @
844a9c03
...
...
@@ -3,6 +3,8 @@
<component
name=
"Encoding"
>
<file
url=
"file://$PROJECT_DIR$/invoicing-service/src/main/java"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/invoicing-service/src/main/resources"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/service-discovery/src/main/java"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/service-discovery/src/main/resources"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/src/main/java"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/src/main/resources"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/users-service/src/main/java"
charset=
"UTF-8"
/>
...
...
.idea/jarRepositories.xml
View file @
844a9c03
...
...
@@ -16,5 +16,10 @@
<option
name=
"name"
value=
"JBoss Community repository"
/>
<option
name=
"url"
value=
"https://repository.jboss.org/nexus/content/repositories/public/"
/>
</remote-repository>
<remote-repository>
<option
name=
"id"
value=
"netflix-candidates"
/>
<option
name=
"name"
value=
"Netflix Candidates"
/>
<option
name=
"url"
value=
"https://artifactory-oss.prod.netflix.net/artifactory/maven-oss-candidates"
/>
</remote-repository>
</component>
</project>
\ No newline at end of file
invoicing-service/pom.xml
View file @
844a9c03
...
...
@@ -9,9 +9,7 @@
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
invoicing-service
</artifactId>
<properties>
<maven.compiler.source>
17
</maven.compiler.source>
<maven.compiler.target>
17
</maven.compiler.target>
...
...
@@ -42,5 +40,4 @@
</plugin>
</plugins>
</build>
</project>
pom.xml
View file @
844a9c03
...
...
@@ -12,6 +12,7 @@
<modules>
<module>
users-service
</module>
<module>
invoicing-service
</module>
<module>
service-discovery
</module>
</modules>
<properties>
...
...
service-discovery/logs/application.log
0 → 100644
View file @
844a9c03
service-discovery/pom.xml
0 → 100644
View file @
844a9c03
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
3.0.1
</version>
<relativePath/>
</parent>
<artifactId>
service-discovery
</artifactId>
<name>
service-discovery
</name>
<properties>
<maven.compiler.source>
17
</maven.compiler.source>
<maven.compiler.target>
17
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<spring-cloud.version>
2020.0.4
</spring-cloud.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-server
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<version>
2.5.5
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
<version>
2.0.9
</version>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
<version>
1.4.11
</version>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-core
</artifactId>
<version>
1.4.11
</version>
</dependency>
</dependencies>
<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>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>
netflix-candidates
</id>
<name>
Netflix Candidates
</name>
<url>
https://artifactory-oss.prod.netflix.net/artifactory/maven-oss-candidates
</url>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
</repository>
</repositories>
</project>
service-discovery/src/main/java/org/example/ServiceDiscoveryApplication.java
0 → 100644
View file @
844a9c03
package
org
.
example
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.netflix.eureka.server.EnableEurekaServer
;
@SpringBootApplication
@EnableEurekaServer
public
class
ServiceDiscoveryApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
ServiceDiscoveryApplication
.
class
,
args
);
}
}
service-discovery/src/main/resources/application.properties
0 → 100644
View file @
844a9c03
server.port
=
8761
eureka.client.registerWithEureka
=
false
eureka.client.fetchRegistry
=
false
\ No newline at end of file
service-discovery/src/main/resources/logback.xml
0 → 100644
View file @
844a9c03
<configuration>
<appender
name=
"FILE"
class=
"ch.qos.logback.core.FileAppender"
>
<file>
./service-discovery/logs/application.log
</file>
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<!-- Console appender -->
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<logger
name=
"com.example"
level=
"DEBUG"
additivity=
"false"
>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
</logger>
<root
level=
"error"
>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
</root>
</configuration>
\ No newline at end of file
service-discovery/target/classes/application.properties
0 → 100644
View file @
844a9c03
server.port
=
8761
eureka.client.registerWithEureka
=
false
eureka.client.fetchRegistry
=
false
\ No newline at end of file
service-discovery/target/classes/logback.xml
0 → 100644
View file @
844a9c03
<configuration>
<appender
name=
"FILE"
class=
"ch.qos.logback.core.FileAppender"
>
<file>
./service-discovery/logs/application.log
</file>
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<!-- Console appender -->
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<logger
name=
"com.example"
level=
"DEBUG"
additivity=
"false"
>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
</logger>
<root
level=
"error"
>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
</root>
</configuration>
\ No newline at end of file
service-discovery/target/classes/org/example/ServiceDiscoveryApplication.class
0 → 100644
View file @
844a9c03
File added
users-service/pom.xml
View file @
844a9c03
...
...
@@ -18,6 +18,7 @@
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment