diff --git a/backend/.gitignore b/backend/.gitignore new file mode 100644 index 0000000..667aaef --- /dev/null +++ b/backend/.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/backend/pom.xml b/backend/pom.xml new file mode 100644 index 0000000..74fff17 --- /dev/null +++ b/backend/pom.xml @@ -0,0 +1,54 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.5.6 + + + cn.hezhaohui + backend + 0.0.1-SNAPSHOT + backend + backend + + + + + + + + + + + + + + + 21 + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/backend/src/main/java/cn/hezhaohui/backend/BackendApplication.java b/backend/src/main/java/cn/hezhaohui/backend/BackendApplication.java new file mode 100644 index 0000000..7c23ff8 --- /dev/null +++ b/backend/src/main/java/cn/hezhaohui/backend/BackendApplication.java @@ -0,0 +1,13 @@ +package cn.hezhaohui.backend; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class BackendApplication { + + public static void main(String[] args) { + SpringApplication.run(BackendApplication.class, args); + } + +} diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties new file mode 100644 index 0000000..3ca17a4 --- /dev/null +++ b/backend/src/main/resources/application.properties @@ -0,0 +1 @@ +spring.application.name=backend diff --git a/backend/src/test/java/cn/hezhaohui/backend/BackendApplicationTests.java b/backend/src/test/java/cn/hezhaohui/backend/BackendApplicationTests.java new file mode 100644 index 0000000..ecbe247 --- /dev/null +++ b/backend/src/test/java/cn/hezhaohui/backend/BackendApplicationTests.java @@ -0,0 +1,13 @@ +package cn.hezhaohui.backend; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class BackendApplicationTests { + + @Test + void contextLoads() { + } + +}