From 7b437c8586d3397ec1e19d550345de85f16d308c Mon Sep 17 00:00:00 2001 From: Mieriki Date: Mon, 1 Apr 2024 10:55:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 35 ++++++++ README.md | 8 +- pom.xml | 83 +++++++++++++++++++ .../example/AcgTestBackendApplication.java | 13 +++ src/main/resources/application.yaml | 21 +++++ .../AcgTestBackendApplicationTests.java | 13 +++ 6 files changed, 171 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/com/example/AcgTestBackendApplication.java create mode 100644 src/main/resources/application.yaml create mode 100644 src/test/java/com/example/AcgTestBackendApplicationTests.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55c2978 --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +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/ + +src/main/resources/banner.txt diff --git a/README.md b/README.md index ddaa8e7..9d55eee 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ -# Mieriki - +# ACG测试系统后端 +## 成员 +- 杨旭蕊 +- 李泽辰 +- 陈冶 +- 吴亚楠 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d4a9de0 --- /dev/null +++ b/pom.xml @@ -0,0 +1,83 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.2.4 + + + com.example + ACGTest_Backend + 0.0.1-SNAPSHOT + ACGTest_Backend + ACGTest_Backend + + 17 + + + + org.springframework.boot + spring-boot-starter-security + + + org.springframework.boot + spring-boot-starter-web + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 3.0.3 + + + + com.mysql + mysql-connector-j + runtime + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + org.mybatis.spring.boot + mybatis-spring-boot-starter-test + 3.0.3 + test + + + org.springframework.security + spring-security-test + test + + + + + + + org.graalvm.buildtools + native-maven-plugin + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/src/main/java/com/example/AcgTestBackendApplication.java b/src/main/java/com/example/AcgTestBackendApplication.java new file mode 100644 index 0000000..ad28115 --- /dev/null +++ b/src/main/java/com/example/AcgTestBackendApplication.java @@ -0,0 +1,13 @@ +package com.example; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class AcgTestBackendApplication { + + public static void main(String[] args) { + SpringApplication.run(AcgTestBackendApplication.class, args); + } + +} diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..cdf3042 --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1,21 @@ +server: + port: 8080 +spring: + application: + name: ACGTest_Backend + datasource: + url: jdbc:mysql:///demo_iti + username: root + password: Inaba + driver-class-name: com.mysql.cj.jdbc.Driver + security: + user: + name: admin + password: 123 + roles: + - admin + - user + jwt: + key: enmaaigasuki + expire: 7 + diff --git a/src/test/java/com/example/AcgTestBackendApplicationTests.java b/src/test/java/com/example/AcgTestBackendApplicationTests.java new file mode 100644 index 0000000..c08225e --- /dev/null +++ b/src/test/java/com/example/AcgTestBackendApplicationTests.java @@ -0,0 +1,13 @@ +package com.example; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class AcgTestBackendApplicationTests { + + @Test + void contextLoads() { + } + +}