From 602c0b34e8306d411e91a65b545c34688ff6e189 Mon Sep 17 00:00:00 2001 From: robbie Date: Fri, 17 Jul 2020 21:27:59 +0800 Subject: [PATCH] add files for discover server --- .../DiscoverServerApplication.java | 14 ++++++++++++++ .../DiscoverServerApplicationTests.java | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 discoverserver/src/main/java/com/discoverserver/DiscoverServerApplication.java create mode 100644 discoverserver/src/test/java/com/discoverserver/DiscoverServerApplicationTests.java diff --git a/discoverserver/src/main/java/com/discoverserver/DiscoverServerApplication.java b/discoverserver/src/main/java/com/discoverserver/DiscoverServerApplication.java new file mode 100644 index 0000000..d9ad507 --- /dev/null +++ b/discoverserver/src/main/java/com/discoverserver/DiscoverServerApplication.java @@ -0,0 +1,14 @@ +package com.discoverserver; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; + +@SpringBootApplication +@EnableEurekaServer +public class DiscoverServerApplication { + + public static void main(String[] args) { + SpringApplication.run(DiscoverServerApplication.class, args); + } +} diff --git a/discoverserver/src/test/java/com/discoverserver/DiscoverServerApplicationTests.java b/discoverserver/src/test/java/com/discoverserver/DiscoverServerApplicationTests.java new file mode 100644 index 0000000..03aa3ec --- /dev/null +++ b/discoverserver/src/test/java/com/discoverserver/DiscoverServerApplicationTests.java @@ -0,0 +1,16 @@ +package com.discoverserver; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class DiscoverServerApplicationTests { + + @Test + public void contextLoads() { + } + +}