From 5fbbea723a4ab9a98aa19015285fbfb7bb5b284e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=8C=BFDD?= Date: Tue, 23 Feb 2016 15:03:39 +0800 Subject: [PATCH] =?UTF-8?q?Spring-Boot=E5=88=9D=E5=A7=8B=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Chapter1/Chapter1.iml | 55 +++++++++++++++++++ Chapter1/pom.xml | 55 +++++++++++++++++++ .../com/didispace/Chapter1Application.java | 13 +++++ .../src/main/resources/application.properties | 0 .../didispace/Chapter1ApplicationTests.java | 16 ++++++ 5 files changed, 139 insertions(+) create mode 100644 Chapter1/Chapter1.iml create mode 100644 Chapter1/pom.xml create mode 100644 Chapter1/src/main/java/com/didispace/Chapter1Application.java create mode 100644 Chapter1/src/main/resources/application.properties create mode 100644 Chapter1/src/test/java/com/didispace/Chapter1ApplicationTests.java diff --git a/Chapter1/Chapter1.iml b/Chapter1/Chapter1.iml new file mode 100644 index 0000000..6519ad1 --- /dev/null +++ b/Chapter1/Chapter1.iml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Chapter1/pom.xml b/Chapter1/pom.xml new file mode 100644 index 0000000..1d18e87 --- /dev/null +++ b/Chapter1/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + + com.didispace + Chapter1 + 0.0.1-SNAPSHOT + jar + + Chapter1 + The first Spring Boot project + + + org.springframework.boot + spring-boot-starter-parent + 1.3.2.RELEASE + + + + + UTF-8 + 1.8 + + + + + org.springframework.boot + spring-boot-starter + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springframework.boot + spring-boot-starter-web + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + diff --git a/Chapter1/src/main/java/com/didispace/Chapter1Application.java b/Chapter1/src/main/java/com/didispace/Chapter1Application.java new file mode 100644 index 0000000..6823281 --- /dev/null +++ b/Chapter1/src/main/java/com/didispace/Chapter1Application.java @@ -0,0 +1,13 @@ +package com.didispace; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class Chapter1Application { + + public static void main(String[] args) { + SpringApplication.run(Chapter1Application.class, args); + } + +} diff --git a/Chapter1/src/main/resources/application.properties b/Chapter1/src/main/resources/application.properties new file mode 100644 index 0000000..e69de29 diff --git a/Chapter1/src/test/java/com/didispace/Chapter1ApplicationTests.java b/Chapter1/src/test/java/com/didispace/Chapter1ApplicationTests.java new file mode 100644 index 0000000..1180149 --- /dev/null +++ b/Chapter1/src/test/java/com/didispace/Chapter1ApplicationTests.java @@ -0,0 +1,16 @@ +package com.didispace; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.SpringApplicationConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; + +@RunWith(SpringJUnit4ClassRunner.class) +@SpringApplicationConfiguration(classes = Chapter1Application.class) +public class Chapter1ApplicationTests { + + @Test + public void contextLoads() { + } + +}