From 22f0de6b868692035b55a926c78d8dfaee5dae93 Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Thu, 25 Mar 2021 18:41:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 33 +++ pom.xml | 134 ++++++++++ .../tenlion/twoduty/TwoDutyApplication.java | 19 ++ src/main/resources/banner.txt | 1 + src/main/resources/mybatis/mybatis-config.xml | 17 ++ src/main/resources/static/default.html | 39 +++ src/main/resources/static/error/403.html | 28 +++ src/main/resources/static/error/404.html | 28 +++ src/main/resources/static/error/500.html | 28 +++ src/main/resources/templates/index.html | 236 ++++++++++++++++++ .../twoduty/TwodutyApplicationTests.java | 13 + 11 files changed, 576 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/com/tenlion/twoduty/TwoDutyApplication.java create mode 100644 src/main/resources/banner.txt create mode 100644 src/main/resources/mybatis/mybatis-config.xml create mode 100644 src/main/resources/static/default.html create mode 100644 src/main/resources/static/error/403.html create mode 100644 src/main/resources/static/error/404.html create mode 100644 src/main/resources/static/error/500.html create mode 100644 src/main/resources/templates/index.html create mode 100644 src/test/java/com/tenlion/twoduty/TwodutyApplicationTests.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..549e00a --- /dev/null +++ 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..c0d64e1 --- /dev/null +++ b/pom.xml @@ -0,0 +1,134 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.4.2 + + + com.tenlion + twoduty + 1.0.0-SNAPSHOT + twoduty + 沧州两个责任 + + + 1.8 + 5.1.4.RELEASE + + + + + + com.google.zxing + core + 3.1.0 + + + com.google.zxing + javase + 3.1.0 + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + org.springframework.boot + spring-boot-starter-web + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 2.1.4 + + + + com.alibaba + druid-spring-boot-starter + 1.1.9 + + + + mysql + mysql-connector-java + runtime + + + org.springframework.boot + spring-boot-configuration-processor + true + + + org.springframework.boot + spring-boot-starter-test + test + + + + + ink.wgink + service-group + 1.0-SNAPSHOT + + + ink.wgink + service-position + 1.0-SNAPSHOT + + + ink.wgink + service-role + 1.0-SNAPSHOT + + + ink.wgink + login-base + 1.0-SNAPSHOT + + + + ink.wgink + basic-app + 1.0-SNAPSHOT + + + + com.baidu.aip + java-sdk + 4.8.0 + + + + com.alibaba + fastjson + 1.2.72 + + + + + + + org.springframework.boot + spring-boot-maven-plugin + 2.1.2.RELEASE + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/src/main/java/com/tenlion/twoduty/TwoDutyApplication.java b/src/main/java/com/tenlion/twoduty/TwoDutyApplication.java new file mode 100644 index 0000000..06b09f1 --- /dev/null +++ b/src/main/java/com/tenlion/twoduty/TwoDutyApplication.java @@ -0,0 +1,19 @@ +package com.tenlion.twoduty; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.scheduling.annotation.EnableScheduling; +import springfox.documentation.swagger2.annotations.EnableSwagger2; + +@EnableSwagger2 +@SpringBootApplication(scanBasePackages = {"com", "ink.wgink"}) +@MapperScan({"cn.com.**.dao", "ink.wgink.**.dao"}) +@EnableScheduling +public class TwoDutyApplication { + + public static void main(String[] args) { + SpringApplication.run(TwoDutyApplication.class, args); + } + +} diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt new file mode 100644 index 0000000..1257727 --- /dev/null +++ b/src/main/resources/banner.txt @@ -0,0 +1 @@ +banner \ No newline at end of file diff --git a/src/main/resources/mybatis/mybatis-config.xml b/src/main/resources/mybatis/mybatis-config.xml new file mode 100644 index 0000000..e61e1dc --- /dev/null +++ b/src/main/resources/mybatis/mybatis-config.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/static/default.html b/src/main/resources/static/default.html new file mode 100644 index 0000000..aecd214 --- /dev/null +++ b/src/main/resources/static/default.html @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + +
+
+
+ + + + + + \ No newline at end of file diff --git a/src/main/resources/static/error/403.html b/src/main/resources/static/error/403.html new file mode 100644 index 0000000..0a81c17 --- /dev/null +++ b/src/main/resources/static/error/403.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + +
+
+ +
+ 权限不足 +

+ 4 + 0 + 3 +

+
+
+
+ + + diff --git a/src/main/resources/static/error/404.html b/src/main/resources/static/error/404.html new file mode 100644 index 0000000..89df8d4 --- /dev/null +++ b/src/main/resources/static/error/404.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + +
+
+ +
+ 无法访问 +

+ 4 + 0 + 4 +

+
+
+
+ + + diff --git a/src/main/resources/static/error/500.html b/src/main/resources/static/error/500.html new file mode 100644 index 0000000..4e4095e --- /dev/null +++ b/src/main/resources/static/error/500.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + +
+
+ +
+ 系统错误 +

+ 4 + 0 + 5 +

+
+
+
+ + + diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html new file mode 100644 index 0000000..a3d99b3 --- /dev/null +++ b/src/main/resources/templates/index.html @@ -0,0 +1,236 @@ + + + + + + + + + + + + + + + +
+
+
+ + + +
+ + +
+ +
+ + +
+
+
+ +
+
    +
  • +
+
+
+ + +
+
+ +
+
+ + +
+
+
+ + + + + diff --git a/src/test/java/com/tenlion/twoduty/TwodutyApplicationTests.java b/src/test/java/com/tenlion/twoduty/TwodutyApplicationTests.java new file mode 100644 index 0000000..7e541f9 --- /dev/null +++ b/src/test/java/com/tenlion/twoduty/TwodutyApplicationTests.java @@ -0,0 +1,13 @@ +package com.tenlion.twoduty; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class TwodutyApplicationTests { + + @Test + void contextLoads() { + } + +}