diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3b41682 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +/mvnw text eol=lf +*.cmd text eol=crlf diff --git a/.gitignore b/.gitignore index 9154f4c..667aaef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,26 +1,33 @@ -# ---> Java -# Compiled class file -*.class +HELP.md +target/ +.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ -# Log file -*.log +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache -# BlueJ files -*.ctxt +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr -# Mobile Tools for Java (J2ME) -.mtj.tmp/ - -# Package Files # -*.jar -*.war -*.nar -*.ear -*.zip -*.tar.gz -*.rar - -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml -hs_err_pid* -replay_pid* +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ +### VS Code ### +.vscode/ diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..8dea6c2 --- /dev/null +++ b/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,3 @@ +wrapperVersion=3.3.4 +distributionType=only-script +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..20bbd19 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM ubuntu:latest +LABEL authors="ogb91" + +ENTRYPOINT ["top", "-b"] \ No newline at end of file diff --git a/db/db.sql b/db/db.sql new file mode 100644 index 0000000..e69de29 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8293d6b --- /dev/null +++ b/pom.xml @@ -0,0 +1,70 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 4.0.2 + + + cn.com.xiaoxiaojiayuan + SpringBootFSD + 0.0.1-SNAPSHOT + SpringBootFSD + SpringBootFSD + + + + + + + + + + + + + + + 21 + + + + org.springframework.boot + spring-boot-starter-webmvc + + + + org.springframework.boot + spring-boot-starter-webmvc-test + test + + + org.slf4j + slf4j-log4j12 + ${slf4j.version} + + + org.apache.commons + commons-lang3 + ${commons-lang3.version} + + + org.junit.jupiter + junit-jupiter-api + 5.6.0 + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/src/main/java/cn/com/xiaoxiaojiayuan/springbootfsd/SpringBootFsdApplication.java b/src/main/java/cn/com/xiaoxiaojiayuan/springbootfsd/SpringBootFsdApplication.java new file mode 100644 index 0000000..45517b7 --- /dev/null +++ b/src/main/java/cn/com/xiaoxiaojiayuan/springbootfsd/SpringBootFsdApplication.java @@ -0,0 +1,13 @@ +package cn.com.xiaoxiaojiayuan.springbootfsd; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SpringBootFsdApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringBootFsdApplication.class, args); + } + +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..960f148 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1,3 @@ +spring.application.name=SpringBootFSD +server.address=0.0.0.0 +server.port=6809 diff --git a/src/test/java/cn/com/xiaoxiaojiayuan/springbootfsd/SpringBootFsdApplicationTests.java b/src/test/java/cn/com/xiaoxiaojiayuan/springbootfsd/SpringBootFsdApplicationTests.java new file mode 100644 index 0000000..50eb6b0 --- /dev/null +++ b/src/test/java/cn/com/xiaoxiaojiayuan/springbootfsd/SpringBootFsdApplicationTests.java @@ -0,0 +1,13 @@ +package cn.com.xiaoxiaojiayuan.springbootfsd; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class SpringBootFsdApplicationTests { + + @Test + void contextLoads() { + } + +}