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() { + } + +}