From 759dd2f151187f88416c644c2dbaaa0c3f561ca4 Mon Sep 17 00:00:00 2001 From: lensferno Date: Wed, 29 Jun 2022 22:53:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96spring=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 33 +++++ pom.xml | 118 ++++++++++++++++++ .../me/lensfrex/dscape/api.v1/ServerMain.java | 13 ++ src/main/resources/application.yml | 1 + 4 files changed, 165 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/me/lensfrex/dscape/api.v1/ServerMain.java create mode 100644 src/main/resources/application.yml diff --git a/.gitignore b/.gitignore index e69de29..549e00a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,33 @@ +HELP.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..eaac9cb --- /dev/null +++ b/pom.xml @@ -0,0 +1,118 @@ + + + + 4.0.0 + me.lensfrex + dscape-server + 0.0.1-dev + dscape-server + jar + + + me.lensfrex.dscape.api.v1.ServerMain + UTF-8 + 1.8 + 1.8 + 5.8.1 + + + + org.springframework.boot + spring-boot-starter-parent + 2.7.0 + + + + + + javax.servlet + javax.servlet-api + 4.0.1 + provided + + + + + com.google.code.gson + gson + 2.9.0 + + + + + org.mindrot + jbcrypt + 0.4 + + + + io.jsonwebtoken + jjwt-api + 0.11.5 + + + io.jsonwebtoken + jjwt-impl + 0.11.5 + runtime + + + io.jsonwebtoken + jjwt-gson + 0.11.5 + runtime + + + + + org.mybatis + mybatis + 3.5.9 + + + + + org.mariadb.jdbc + mariadb-java-client + 3.0.4 + + + + commons-io + commons-io + 2.11.0 + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-starter-test + test + + + org.springframework.boot + spring-boot-starter-jetty + compile + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + \ No newline at end of file diff --git a/src/main/java/me/lensfrex/dscape/api.v1/ServerMain.java b/src/main/java/me/lensfrex/dscape/api.v1/ServerMain.java new file mode 100644 index 0000000..7c94d3c --- /dev/null +++ b/src/main/java/me/lensfrex/dscape/api.v1/ServerMain.java @@ -0,0 +1,13 @@ +package me.lensfrex.dscape.api.v1; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; + +@SpringBootApplication +public class ServerMain extends SpringBootServletInitializer { + + public static void main(String[] args) { + SpringApplication.run(ServerMain.class, args); + } +} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1 @@ +