From 47063675b7ca7147ae7688f54b85a749204b1c6d Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Mon, 29 Oct 2018 18:39:00 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20spring-boot-demo-war=20=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 223 +++++++++--------- spring-boot-demo-war/.gitignore | 25 ++ spring-boot-demo-war/pom.xml | 48 ++++ .../war/SpringBootDemoWarApplication.java | 12 + .../src/main/resources/application.yml | 0 .../SpringBootDemoWarApplicationTests.java | 16 ++ 6 files changed, 213 insertions(+), 111 deletions(-) create mode 100644 spring-boot-demo-war/.gitignore create mode 100644 spring-boot-demo-war/pom.xml create mode 100644 spring-boot-demo-war/src/main/java/com/xkcoding/war/SpringBootDemoWarApplication.java create mode 100644 spring-boot-demo-war/src/main/resources/application.yml create mode 100644 spring-boot-demo-war/src/test/java/com/xkcoding/war/SpringBootDemoWarApplicationTests.java diff --git a/pom.xml b/pom.xml index e7bce7b..fb4adc1 100644 --- a/pom.xml +++ b/pom.xml @@ -2,120 +2,121 @@ - 4.0.0 + 4.0.0 - com.xkcoding - spring-boot-demo - 0.0.1-SNAPSHOT - - spring-boot-demo-helloworld - spring-boot-demo-properties - spring-boot-demo-actuator - spring-boot-demo-admin-client - spring-boot-demo-admin-server - spring-boot-demo-logback - spring-boot-demo-log-aop - spring-boot-demo-exception-handler - spring-boot-demo-template-freemarker - spring-boot-demo-template-thymeleaf - spring-boot-demo-template-beetl - spring-boot-demo-template-enjoy - spring-boot-demo-orm-jdbctemplate - spring-boot-demo-orm-jpa - spring-boot-demo-upload - spring-boot-demo-neo4j - spring-boot-demo-elasticsearch - - pom + com.xkcoding + spring-boot-demo + 0.0.1-SNAPSHOT + + spring-boot-demo-helloworld + spring-boot-demo-properties + spring-boot-demo-actuator + spring-boot-demo-admin-client + spring-boot-demo-admin-server + spring-boot-demo-logback + spring-boot-demo-log-aop + spring-boot-demo-exception-handler + spring-boot-demo-template-freemarker + spring-boot-demo-template-thymeleaf + spring-boot-demo-template-beetl + spring-boot-demo-template-enjoy + spring-boot-demo-orm-jdbctemplate + spring-boot-demo-orm-jpa + spring-boot-demo-upload + spring-boot-demo-war + spring-boot-demo-elasticsearch + spring-boot-demo-neo4j + + pom - spring-boot-demo - http://xkcoding.com + spring-boot-demo + http://xkcoding.com - - UTF-8 - UTF-8 - 1.8 - 1.8 - 1.8 - 2.0.5.RELEASE - 8.0.12 - 4.1.19 - 1.20 - + + UTF-8 + UTF-8 + 1.8 + 1.8 + 1.8 + 2.0.5.RELEASE + 8.0.12 + 4.1.19 + 1.20 + - - - - org.springframework.boot - spring-boot-dependencies - ${spring.boot.version} - pom - import - - - mysql - mysql-connector-java - ${mysql.version} - - - - cn.hutool - hutool-all - ${hutool.version} - - - - eu.bitwalker - UserAgentUtils - ${user.agent.version} - - - + + + + org.springframework.boot + spring-boot-dependencies + ${spring.boot.version} + pom + import + + + mysql + mysql-connector-java + ${mysql.version} + + + + cn.hutool + hutool-all + ${hutool.version} + + + + eu.bitwalker + UserAgentUtils + ${user.agent.version} + + + - - - - - maven-clean-plugin - 3.0.0 - - - maven-resources-plugin - 3.0.2 - - - maven-compiler-plugin - 3.7.0 - - - maven-surefire-plugin - 2.20.1 - - - maven-jar-plugin - 3.0.2 - - - maven-install-plugin - 2.5.2 - - - maven-deploy-plugin - 2.8.2 - - - org.springframework.boot - spring-boot-maven-plugin - ${spring.boot.version} - - - - repackage - - - - - - - + + + + + maven-clean-plugin + 3.0.0 + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.7.0 + + + maven-surefire-plugin + 2.20.1 + + + maven-jar-plugin + 3.0.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + org.springframework.boot + spring-boot-maven-plugin + ${spring.boot.version} + + + + repackage + + + + + + + \ No newline at end of file diff --git a/spring-boot-demo-war/.gitignore b/spring-boot-demo-war/.gitignore new file mode 100644 index 0000000..82eca33 --- /dev/null +++ b/spring-boot-demo-war/.gitignore @@ -0,0 +1,25 @@ +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/build/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ \ No newline at end of file diff --git a/spring-boot-demo-war/pom.xml b/spring-boot-demo-war/pom.xml new file mode 100644 index 0000000..6d8f250 --- /dev/null +++ b/spring-boot-demo-war/pom.xml @@ -0,0 +1,48 @@ + + + 4.0.0 + + spring-boot-demo-war + 0.0.1-SNAPSHOT + jar + + spring-boot-demo-war + Demo project for Spring Boot + + + com.xkcoding + spring-boot-demo + 0.0.1-SNAPSHOT + + + + UTF-8 + UTF-8 + 1.8 + + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + spring-boot-demo-war + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/spring-boot-demo-war/src/main/java/com/xkcoding/war/SpringBootDemoWarApplication.java b/spring-boot-demo-war/src/main/java/com/xkcoding/war/SpringBootDemoWarApplication.java new file mode 100644 index 0000000..1cd8917 --- /dev/null +++ b/spring-boot-demo-war/src/main/java/com/xkcoding/war/SpringBootDemoWarApplication.java @@ -0,0 +1,12 @@ +package com.xkcoding.war; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SpringBootDemoWarApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringBootDemoWarApplication.class, args); + } +} diff --git a/spring-boot-demo-war/src/main/resources/application.yml b/spring-boot-demo-war/src/main/resources/application.yml new file mode 100644 index 0000000..e69de29 diff --git a/spring-boot-demo-war/src/test/java/com/xkcoding/war/SpringBootDemoWarApplicationTests.java b/spring-boot-demo-war/src/test/java/com/xkcoding/war/SpringBootDemoWarApplicationTests.java new file mode 100644 index 0000000..5ad505d --- /dev/null +++ b/spring-boot-demo-war/src/test/java/com/xkcoding/war/SpringBootDemoWarApplicationTests.java @@ -0,0 +1,16 @@ +package com.xkcoding.war; + +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 SpringBootDemoWarApplicationTests { + + @Test + public void contextLoads() { + } + +}