From b0b3f23d7ac36e87651559882a612913961c9bfd Mon Sep 17 00:00:00 2001 From: qinyingjie Date: Mon, 9 Jan 2023 09:20:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:eureka=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- springcloud-service-eureka/pom.xml | 65 +++++++++++++++++++ .../kwan/springcloud/EurekaApplication.java | 18 +++++ .../src/main/resources/application.yaml | 6 ++ .../springcloud/EurekaApplicationTests.java | 13 ++++ 4 files changed, 102 insertions(+) create mode 100644 springcloud-service-eureka/pom.xml create mode 100644 springcloud-service-eureka/src/main/java/com/kwan/springcloud/EurekaApplication.java create mode 100644 springcloud-service-eureka/src/main/resources/application.yaml create mode 100644 springcloud-service-eureka/src/test/java/com/kwan/springcloud/EurekaApplicationTests.java diff --git a/springcloud-service-eureka/pom.xml b/springcloud-service-eureka/pom.xml new file mode 100644 index 0000000..d3fa68e --- /dev/null +++ b/springcloud-service-eureka/pom.xml @@ -0,0 +1,65 @@ + + + 4.0.0 + + com.kwan.springcloud + springcloud-service-parent + 1.0.0 + + springcloud-service-eureka + 0.0.1-SNAPSHOT + springcloud-service-eureka + + 1.8 + 2022.0.0 + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.cloud + spring-cloud-starter-netflix-eureka-server + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.cloud + spring-cloud-dependencies + ${spring-cloud.version} + pom + import + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + netflix-candidates + Netflix Candidates + https://artifactory-oss.prod.netflix.net/artifactory/maven-oss-candidates + + false + + + + + diff --git a/springcloud-service-eureka/src/main/java/com/kwan/springcloud/EurekaApplication.java b/springcloud-service-eureka/src/main/java/com/kwan/springcloud/EurekaApplication.java new file mode 100644 index 0000000..b9f3afb --- /dev/null +++ b/springcloud-service-eureka/src/main/java/com/kwan/springcloud/EurekaApplication.java @@ -0,0 +1,18 @@ +package com.kwan.springcloud; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SpringcloudServiceEurekaApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringcloudServiceEurekaApplication.class, args); + } + +} + + + + + diff --git a/springcloud-service-eureka/src/main/resources/application.yaml b/springcloud-service-eureka/src/main/resources/application.yaml new file mode 100644 index 0000000..3beb6a1 --- /dev/null +++ b/springcloud-service-eureka/src/main/resources/application.yaml @@ -0,0 +1,6 @@ +#端口号 +server: + port: 8761 + + +eureka \ No newline at end of file diff --git a/springcloud-service-eureka/src/test/java/com/kwan/springcloud/EurekaApplicationTests.java b/springcloud-service-eureka/src/test/java/com/kwan/springcloud/EurekaApplicationTests.java new file mode 100644 index 0000000..3fc8b85 --- /dev/null +++ b/springcloud-service-eureka/src/test/java/com/kwan/springcloud/EurekaApplicationTests.java @@ -0,0 +1,13 @@ +package com.kwan.springcloud; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class SpringcloudServiceEurekaApplicationTests { + + @Test + void contextLoads() { + } + +} -- GitLab