diff --git a/spring-boot-actuator/pom.xml b/spring-boot-actuator/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8a4a33acbaf658d34dd614bee261aa589605221b
--- /dev/null
+++ b/spring-boot-actuator/pom.xml
@@ -0,0 +1,59 @@
+
+
+ 4.0.0
+
+ com.neo
+ spring-boot-actuator
+ 1.0.0-SNAPSHOT
+ jar
+
+ spring-boot-actuator
+ Demo project for Spring Boot
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 1.5.9.RELEASE
+
+
+
+
+ UTF-8
+ 1.8
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ org.springframework.boot
+ spring-boot-devtools
+ true
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+ true
+
+
+
+
+
+
diff --git a/spring-boot-actuator/src/main/java/com/neo/ActuatorApplication.java b/spring-boot-actuator/src/main/java/com/neo/ActuatorApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..66b22076b19a6d54a01075da8ad3f40d95df8d26
--- /dev/null
+++ b/spring-boot-actuator/src/main/java/com/neo/ActuatorApplication.java
@@ -0,0 +1,12 @@
+package com.neo;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class ActuatorApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(ActuatorApplication.class, args);
+ }
+}
diff --git a/spring-boot-actuator/src/main/java/com/neo/controller/HelloController.java b/spring-boot-actuator/src/main/java/com/neo/controller/HelloController.java
new file mode 100644
index 0000000000000000000000000000000000000000..5e93f0ddaf7f0b00882284bb1d9018dc85126b8e
--- /dev/null
+++ b/spring-boot-actuator/src/main/java/com/neo/controller/HelloController.java
@@ -0,0 +1,13 @@
+package com.neo.controller;
+
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+public class HelloController {
+
+ @RequestMapping("/hello")
+ public String index() {
+ return "Hello World";
+ }
+}
\ No newline at end of file
diff --git a/spring-boot-actuator/src/main/resources/application.yml b/spring-boot-actuator/src/main/resources/application.yml
new file mode 100644
index 0000000000000000000000000000000000000000..8130c2882656652894493053371715e0908b804a
--- /dev/null
+++ b/spring-boot-actuator/src/main/resources/application.yml
@@ -0,0 +1,15 @@
+server:
+ port: 8080
+management:
+ security:
+ enabled: false #关掉安全认证
+ port: 8088 #管理端口调整成8088
+ context-path: /monitor #actuator的访问路径
+endpoints:
+ shutdown:
+ enabled: true
+
+info:
+ app:
+ name: spring-boot-actuator
+ version: 1.0.0
\ No newline at end of file
diff --git a/spring-boot-actuator/src/test/java/com/neo/ActuatorApplicationTests.java b/spring-boot-actuator/src/test/java/com/neo/ActuatorApplicationTests.java
new file mode 100644
index 0000000000000000000000000000000000000000..e122032a2927fa2d0ac54b5e9e1af67303b9a1fa
--- /dev/null
+++ b/spring-boot-actuator/src/test/java/com/neo/ActuatorApplicationTests.java
@@ -0,0 +1,18 @@
+package com.neo;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class ActuatorApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ System.out.println("hello word");
+ }
+
+}
diff --git a/spring-boot-actuator/src/test/java/com/neo/controller/HelloTests.java b/spring-boot-actuator/src/test/java/com/neo/controller/HelloTests.java
new file mode 100644
index 0000000000000000000000000000000000000000..14954393097fd0dc6b6873a7542d0fc771afa549
--- /dev/null
+++ b/spring-boot-actuator/src/test/java/com/neo/controller/HelloTests.java
@@ -0,0 +1,36 @@
+package com.neo.controller;
+
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.http.MediaType;
+import org.springframework.test.context.junit4.SpringRunner;
+import org.springframework.test.web.servlet.MockMvc;
+import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
+import org.springframework.test.web.servlet.setup.MockMvcBuilders;
+
+import static org.hamcrest.Matchers.equalTo;
+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class HelloTests {
+
+
+ private MockMvc mvc;
+
+ @Before
+ public void setUp() throws Exception {
+ mvc = MockMvcBuilders.standaloneSetup(new HelloController()).build();
+ }
+
+ @Test
+ public void getHello() throws Exception {
+ mvc.perform(MockMvcRequestBuilders.get("/hello").accept(MediaType.APPLICATION_JSON))
+ .andExpect(status().isOk())
+ .andExpect(content().string(equalTo("Hello World")));
+ }
+
+}
\ No newline at end of file
diff --git a/spring-boot-actuator/src/test/java/com/neo/controller/HelloWorldControlerTests.java b/spring-boot-actuator/src/test/java/com/neo/controller/HelloWorldControlerTests.java
new file mode 100644
index 0000000000000000000000000000000000000000..d8b01a50d9c87db02625e3d70f6cd2f2b79e8750
--- /dev/null
+++ b/spring-boot-actuator/src/test/java/com/neo/controller/HelloWorldControlerTests.java
@@ -0,0 +1,34 @@
+package com.neo.controller;
+
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.http.MediaType;
+import org.springframework.test.context.junit4.SpringRunner;
+import org.springframework.test.web.servlet.MockMvc;
+import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
+import org.springframework.test.web.servlet.result.MockMvcResultHandlers;
+import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
+import org.springframework.test.web.servlet.setup.MockMvcBuilders;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class HelloWorldControlerTests {
+
+ private MockMvc mvc;
+
+ @Before
+ public void setUp() throws Exception {
+ mvc = MockMvcBuilders.standaloneSetup(new HelloController()).build();
+ }
+
+ @Test
+ public void getHello() throws Exception {
+ mvc.perform(MockMvcRequestBuilders.get("/hello").accept(MediaType.APPLICATION_JSON))
+ .andExpect(MockMvcResultMatchers.status().isOk())
+ .andDo(MockMvcResultHandlers.print())
+ .andReturn();
+ }
+
+}
\ No newline at end of file
diff --git a/spring-boot-admin-simple/pom.xml b/spring-boot-admin-simple/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..4b30a06c64becac2d5fb1e2d69a298788d72ebca
--- /dev/null
+++ b/spring-boot-admin-simple/pom.xml
@@ -0,0 +1,53 @@
+
+
+ 4.0.0
+ com.neo
+ spring-boot-admin-simple
+ 1.0.0.BUILD-SNAPSHOT
+
+
+ spring-boot-admin-server
+ spring-boot-admin-client
+
+
+ pom
+ Spring boot admin
+ Demo project for Spring Boot
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 1.5.9.RELEASE
+
+
+
+
+ UTF-8
+ UTF-8
+ 1.8
+ Edgware.SR1
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-dependencies
+ ${spring-cloud.version}
+ pom
+ import
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-boot-admin-simple/spring-boot-admin-client/pom.xml b/spring-boot-admin-simple/spring-boot-admin-client/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2d9c40c5e0f03440185a8d8b4527c59b3197761c
--- /dev/null
+++ b/spring-boot-admin-simple/spring-boot-admin-client/pom.xml
@@ -0,0 +1,30 @@
+
+
+ 4.0.0
+
+ com.neo
+ spring-boot-admin-simple
+ 1.0.0.BUILD-SNAPSHOT
+
+ spring-boot-admin-client
+ jar
+
+
+
+ de.codecentric
+ spring-boot-admin-starter-client
+ 1.5.6
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/spring-boot-admin-simple/spring-boot-admin-client/src/main/java/com/neo/AdminClientApplication.java b/spring-boot-admin-simple/spring-boot-admin-client/src/main/java/com/neo/AdminClientApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..9494e5efe6e8e8296e5880f8bdc739df95850c7a
--- /dev/null
+++ b/spring-boot-admin-simple/spring-boot-admin-client/src/main/java/com/neo/AdminClientApplication.java
@@ -0,0 +1,12 @@
+package com.neo;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class AdminClientApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(AdminClientApplication.class, args);
+ }
+}
diff --git a/spring-boot-admin-simple/spring-boot-admin-client/src/main/resources/application.properties b/spring-boot-admin-simple/spring-boot-admin-client/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..d21264ef46893f356946abc7926f0244f2bb09cb
--- /dev/null
+++ b/spring-boot-admin-simple/spring-boot-admin-client/src/main/resources/application.properties
@@ -0,0 +1,4 @@
+server.port=8001
+
+spring.boot.admin.url=http://localhost:8000
+management.security.enabled=false
diff --git a/spring-boot-admin-simple/spring-boot-admin-client/src/test/java/com/neo/AdminClientApplicationTests.java b/spring-boot-admin-simple/spring-boot-admin-client/src/test/java/com/neo/AdminClientApplicationTests.java
new file mode 100644
index 0000000000000000000000000000000000000000..ad4141adf55b880ff4018f444808a1946532b81e
--- /dev/null
+++ b/spring-boot-admin-simple/spring-boot-admin-client/src/test/java/com/neo/AdminClientApplicationTests.java
@@ -0,0 +1,16 @@
+package com.neo;
+
+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 AdminClientApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ }
+
+}
diff --git a/spring-boot-admin-simple/spring-boot-admin-server/pom.xml b/spring-boot-admin-simple/spring-boot-admin-server/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2f108def47263e17dc75aab80a4af92f02192397
--- /dev/null
+++ b/spring-boot-admin-simple/spring-boot-admin-server/pom.xml
@@ -0,0 +1,35 @@
+
+
+ 4.0.0
+
+ com.neo
+ spring-boot-admin-simple
+ 1.0.0.BUILD-SNAPSHOT
+
+ spring-boot-admin-server
+ jar
+
+
+
+ de.codecentric
+ spring-boot-admin-server
+ 1.5.6
+
+
+ de.codecentric
+ spring-boot-admin-server-ui
+ 1.5.6
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/spring-boot-admin-simple/spring-boot-admin-server/src/main/java/com/neo/AdminServerApplication.java b/spring-boot-admin-simple/spring-boot-admin-server/src/main/java/com/neo/AdminServerApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..3e70e56f7ff2740ad4a05fd84bdbd0e8b9641480
--- /dev/null
+++ b/spring-boot-admin-simple/spring-boot-admin-server/src/main/java/com/neo/AdminServerApplication.java
@@ -0,0 +1,16 @@
+package com.neo;
+
+import de.codecentric.boot.admin.config.EnableAdminServer;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+@EnableAutoConfiguration
+@EnableAdminServer
+public class AdminServerApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(AdminServerApplication.class, args);
+ }
+}
diff --git a/spring-boot-admin-simple/spring-boot-admin-server/src/main/resources/application.properties b/spring-boot-admin-simple/spring-boot-admin-server/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..4e7c8e915e328a1193ec4ad71826a09eb138aa43
--- /dev/null
+++ b/spring-boot-admin-simple/spring-boot-admin-server/src/main/resources/application.properties
@@ -0,0 +1,2 @@
+server.port=8000
+
diff --git a/spring-boot-admin-simple/spring-boot-admin-server/src/test/java/com/neo/AdminServerApplicationTests.java b/spring-boot-admin-simple/spring-boot-admin-server/src/test/java/com/neo/AdminServerApplicationTests.java
new file mode 100644
index 0000000000000000000000000000000000000000..6179c4d405416e91910ab15d66981c4bfc608163
--- /dev/null
+++ b/spring-boot-admin-simple/spring-boot-admin-server/src/test/java/com/neo/AdminServerApplicationTests.java
@@ -0,0 +1,16 @@
+package com.neo;
+
+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 AdminServerApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ }
+
+}