From f9701813a115a601c601ace023c793917bab5add Mon Sep 17 00:00:00 2001 From: wanggeng888 <450292408@qq.com> Date: Tue, 27 Apr 2021 14:58:17 +0800 Subject: [PATCH] fc --- .gitignore | 36 +++++ pom.xml | 124 ++++++++++++++++++ .../SystemExaminationSignupApplication.java | 17 +++ src/main/resources/application.yml | 101 ++++++++++++++ ...stemExaminationSignupApplicationTests.java | 13 ++ 5 files changed, 291 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/cn/com/tenlion/systemexaminationsignup/SystemExaminationSignupApplication.java create mode 100644 src/main/resources/application.yml create mode 100644 src/test/java/cn/com/tenlion/systemexaminationsignup/SystemExaminationSignupApplicationTests.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9cae12e --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +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/ + +mvnw* +.mvn/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..9b4ea61 --- /dev/null +++ b/pom.xml @@ -0,0 +1,124 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.4.2 + + + cn.com.tenlion + system-examination-signup + 0.0.1-SNAPSHOT + system-examination-signup + Demo project for Spring Boot + + 1.8 + 2.1.4 + 8.0.22 + 2.3.28 + 1.1.9 + 1.0.1-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + org.springframework.boot + spring-boot-starter-freemarker + + + mysql + mysql-connector-java + ${mysql.version} + runtime + + + + org.springframework.boot + spring-boot-starter-test + test + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + ${spring-mybatis.version} + + + + com.alibaba + druid-spring-boot-starter + ${druid.version} + + + + + ink.wgink + module-article + 1.0-SNAPSHOT + + + ink.wgink + service-group + 1.0-SNAPSHOT + + + ink.wgink + service-position + 1.0-SNAPSHOT + + + ink.wgink + service-role + 1.0-SNAPSHOT + + + ink.wgink + basic-app + 1.0-SNAPSHOT + + + ink.wgink + login-app + 1.0-SNAPSHOT + + + + junit + junit + test + + + + org.projectlombok + lombok + 1.18.16 + provided + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/src/main/java/cn/com/tenlion/systemexaminationsignup/SystemExaminationSignupApplication.java b/src/main/java/cn/com/tenlion/systemexaminationsignup/SystemExaminationSignupApplication.java new file mode 100644 index 0000000..b48b556 --- /dev/null +++ b/src/main/java/cn/com/tenlion/systemexaminationsignup/SystemExaminationSignupApplication.java @@ -0,0 +1,17 @@ +package cn.com.tenlion.systemexaminationsignup; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import springfox.documentation.swagger2.annotations.EnableSwagger2; + +@EnableSwagger2 +@SpringBootApplication(scanBasePackages = {"com.cm", "ink.wgink"}) +@MapperScan(basePackages = {"com.cm.**.dao", "ink.wgink.**.dao"}) +public class SystemExaminationSignupApplication { + + public static void main(String[] args) { + SpringApplication.run(SystemExaminationSignupApplication.class, args); + } + +} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..32bc037 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,101 @@ +server: + port: 7009 + url: http://127.0.0.1:7009/signup + system-title: 考试报名系统 + system-sub-title: 考试报名系统 + servlet: + context-path: /signup + +spring: + login-url: /oauth/login + login-failure: /oauth/login?error + login-process: /userlogin + assets-matchers: /assets/** + thymeleaf: + prefix: classpath:/templates/ + suffix: .html + mode: HTML5 + encoding: UTF-8 + cache: false + main: + allow-bean-definition-overriding: true + servlet: + multipart: + max-file-size: 1GB + max-request-size: 1GB + datasource: + druid: + url: jdbc:mysql://127.0.0.1:3306/db_examination_signup?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC + db-type: mysql + driver-class-name: com.mysql.cj.jdbc.Driver + username: root + password: root + initial-size: 2 + min-idle: 2 + max-active: 5 + max-wait: 60000 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 300000 + validation-query: SELECT 1 FROM DUAL + test-while-idle: true + test-on-borrow: false + test-on-return: false + pool-prepared-statements: true + max-pool-prepared-statement-per-connection-size: 10 + filter: + commons-log: + connection-logger-name: stat,wall,log4j + stat: + log-slow-sql: true + slow-sql-millis: 2000 + connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + use-global-data-source-stat: true + +# 数据库 +mybatis: + config-location: classpath:mybatis/mybatis-config.xml + mapper-locations: classpath*:mybatis/mapper/**/*.xml + +# 文档 +swagger: + base-package-list: ink.wgink,cn.com.tenlion + +# 文件 +file: + # 文件的保存路径 + upload-path: /Users/wanggeng/Desktop/UploadFiles/ + # 图片类型 + image-types: png,jpg,jpeg,gif,blob + # 视频类型 + video-types: mp4,rmvb + # 音频类型 + audio-types: mp3,wmv,amr + # 文件类型 + file-types: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf + # 同时上传最大支持数 + max-file-count: 6 + # 图片输出压缩质量,大于0,默认0.4 + image-output-quality: 0.4 + # 媒体最大时长(单位:秒) + media-max-duration: + # 后台 + backend: + video: 10 + audio: 60 + # 微信 + wechat: + video: 10 + audio: 60 + # app + app: + video: 10 + audio: 60 + +# 日志 +logging: + file: + name: /projects/logs/e/systemstudy-logs.log + level: + root: error + ink.wgink: debug + cn.com.tenlion: debug \ No newline at end of file diff --git a/src/test/java/cn/com/tenlion/systemexaminationsignup/SystemExaminationSignupApplicationTests.java b/src/test/java/cn/com/tenlion/systemexaminationsignup/SystemExaminationSignupApplicationTests.java new file mode 100644 index 0000000..9534b11 --- /dev/null +++ b/src/test/java/cn/com/tenlion/systemexaminationsignup/SystemExaminationSignupApplicationTests.java @@ -0,0 +1,13 @@ +package cn.com.tenlion.systemexaminationsignup; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class SystemExaminationSignupApplicationTests { + + @Test + void contextLoads() { + } + +}