commit 69574ea64b51aad8a191bfec0a8ef9c2140ab7fe Author: Spark <2666652@gmail.com> Date: Sat Oct 12 00:27:10 2024 +0800 init: 初始化提交 diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..3a86cee --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/RollCall.iml b/.idea/RollCall.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/RollCall.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..a25c3cf --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..7d9f3ae --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..00d472d --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..600042d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,75 @@ + + + + + + + + + + + + JUnit + + + JVM 语言 + + + Java + + + Java 5Java 语言级别迁移帮助Java + + + Java 8Java 语言级别迁移帮助Java + + + Java 语言级别迁移帮助Java + + + JavadocJava + + + Spring + + + Spring AOPSpring + + + TestNGJava + + + 代码成熟度Java + + + 性能Java + + + 数值问题Java + + + 类结构Java + + + 线程问题Java + + + 编译器问题Java + + + + + 用户定义 + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ac0f21f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..8306744 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/RollCallServer/.gitignore b/RollCallServer/.gitignore new file mode 100644 index 0000000..549e00a --- /dev/null +++ b/RollCallServer/.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/RollCallServer/.mvn/wrapper/maven-wrapper.properties b/RollCallServer/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..d58dfb7 --- /dev/null +++ b/RollCallServer/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +wrapperVersion=3.3.2 +distributionType=only-script +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip diff --git a/RollCallServer/pom.xml b/RollCallServer/pom.xml new file mode 100644 index 0000000..1d2730b --- /dev/null +++ b/RollCallServer/pom.xml @@ -0,0 +1,112 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.3.4 + + + cc.aspark + RollCallServer + 0.0.1-SNAPSHOT + RollCallServer + RollCallServer + + + + + + + + + + + + + + + 17 + + + + org.springframework.boot + spring-boot-starter-web + + + com.mysql + mysql-connector-j + runtime + + + org.projectlombok + lombok + true + + + com.baomidou + mybatis-plus-spring-boot3-starter + 3.5.7 + + + org.springframework.boot + spring-boot-starter-test + test + + + com.github.xiaoymin + knife4j-openapi3-jakarta-spring-boot-starter + 4.4.0 + + + cn.hutool + hutool-all + 5.8.16 + + + io.jsonwebtoken + jjwt + 0.9.1 + + + javax.xml.bind + jaxb-api + 2.3.0 + + + com.sun.xml.bind + jaxb-impl + 2.3.0 + + + + org.apache.poi + poi + 5.2.3 + + + org.apache.poi + poi-ooxml + 5.2.3 + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/RollCallServer/src/main/java/cc/aspark/RollCallServerApplication.java b/RollCallServer/src/main/java/cc/aspark/RollCallServerApplication.java new file mode 100644 index 0000000..b5f23b0 --- /dev/null +++ b/RollCallServer/src/main/java/cc/aspark/RollCallServerApplication.java @@ -0,0 +1,15 @@ +package cc.aspark; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@MapperScan("cc.aspark.mapper") +@SpringBootApplication +public class RollCallServerApplication { + + public static void main(String[] args) { + SpringApplication.run(RollCallServerApplication.class, args); + } + +} diff --git a/RollCallServer/src/main/resources/application.yml b/RollCallServer/src/main/resources/application.yml new file mode 100644 index 0000000..6a1b410 --- /dev/null +++ b/RollCallServer/src/main/resources/application.yml @@ -0,0 +1,41 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/roll_call + username: root + password: 355221 + +# springdoc-openapi项目配置 +springdoc: + swagger-ui: + path: /swagger-ui.html + tags-sorter: alpha + operations-sorter: alpha + api-docs: + path: /v3/api-docs + group-configs: + - group: 'default' + paths-to-match: '/**' + packages-to-scan: cc.aspark.controller +# knife4j的增强配置,不需要增强可以不配 +knife4j: + enable: true + setting: + language: zh_cn +logging: + level: + cc: + aspark: + controller: info + service: info + mapper: debug + +jwt: + token-name: Authorization + secret-key: spark + ttl: 86400000 + +mybatis-plus: + global-config: + db-config: + id-type: assign_id diff --git a/RollCallServer/src/test/java/cc/aspark/TestApplicationTests.java b/RollCallServer/src/test/java/cc/aspark/TestApplicationTests.java new file mode 100644 index 0000000..eab8aeb --- /dev/null +++ b/RollCallServer/src/test/java/cc/aspark/TestApplicationTests.java @@ -0,0 +1,13 @@ +package cc.aspark; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class TestApplicationTests { + + @Test + void contextLoads() { + } + +}