diff --git a/springcloud-service-eureka/pom.xml b/springcloud-service-eureka/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..d3fa68e99c83b7ea9c8678fa787e3c70773cfa45 --- /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 0000000000000000000000000000000000000000..b9f3afb1d9d995264f15086c4caebd17b70bc894 --- /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 0000000000000000000000000000000000000000..3beb6a15d8c156c93391630d98c1f6c794d093bb --- /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 0000000000000000000000000000000000000000..3fc8b85a01a9c86ffcf38a83233f299b708e6d17 --- /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() { + } + +}