diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..a1f7b52
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,62 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.0.3.RELEASE
+
+
+ com.example
+ springBootDemo
+ 0.0.1-SNAPSHOT
+ springBootDemo
+ Demo project for Spring Boot
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.projectlombok
+ lombok
+ true
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ org.projectlombok
+ lombok
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/example/springbootdemo/SpringBootDemoApplication.java b/src/main/java/com/example/springbootdemo/SpringBootDemoApplication.java
new file mode 100644
index 0000000..fefbf99
--- /dev/null
+++ b/src/main/java/com/example/springbootdemo/SpringBootDemoApplication.java
@@ -0,0 +1,13 @@
+package com.example.springbootdemo;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class SpringBootDemoApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(SpringBootDemoApplication.class, args);
+ }
+
+}
diff --git a/src/main/java/com/example/springbootdemo/controller/HelloController.java b/src/main/java/com/example/springbootdemo/controller/HelloController.java
new file mode 100644
index 0000000..6a45c8c
--- /dev/null
+++ b/src/main/java/com/example/springbootdemo/controller/HelloController.java
@@ -0,0 +1,25 @@
+package com.example.springbootdemo.controller;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+public class HelloController {
+
+ private final Logger logger = LoggerFactory.getLogger(HelloController.class);
+
+ @GetMapping("/")
+ public String index() {
+ logger.info("a log : Greetings from Spring Boot");
+ return "Greetings from Spring Boot!";
+ }
+ @GetMapping("/healthcheck")
+ public String healthcheck() {
+ logger.error("a log : Call error");
+ return "Greetings from Spring Boot! Call error";
+ }
+
+}
+
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
new file mode 100644
index 0000000..706113a
--- /dev/null
+++ b/src/main/resources/application.properties
@@ -0,0 +1,9 @@
+server.port=8081
+
+
+logging.config=classpath:logback-spring.xml
+log.path=logs
+# FALSE同步;FILE异步
+log.async.file=FILE
+
+
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
new file mode 100644
index 0000000..51b432a
--- /dev/null
+++ b/src/main/resources/logback-spring.xml
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
+ ${logPattern}
+
+
+
+
+
+
+
+
+
+ ${logPattern}
+ UTF-8
+
+
+ ${logPath}/demolog.%d{yyyy-MM-dd}-%i.log
+ 7
+ 100MB
+ 1GB
+
+
+ ERROR
+
+
+
+
+
+ 0
+
+ 512
+
+ false
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/test/java/com/example/springbootdemo/SpringBootDemoApplicationTests.java b/src/test/java/com/example/springbootdemo/SpringBootDemoApplicationTests.java
new file mode 100644
index 0000000..5427b38
--- /dev/null
+++ b/src/test/java/com/example/springbootdemo/SpringBootDemoApplicationTests.java
@@ -0,0 +1,13 @@
+package com.example.springbootdemo;
+
+import org.junit.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class SpringBootDemoApplicationTests {
+
+ @Test
+ void contextLoads() {
+ }
+
+}