diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e4d065c..50e430e 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,22 +1,24 @@ +# 文件 +file: + # 上传路径 + uploadPath: E:\projects\uploadFiles\ + # 图片支持格式 + imageTypes: png,jpg,jpeg,gif,blob + # 视频支持格式 + videoTypes: mp4,rmvb + # 音乐支持格式 + audioTypes: mp3,wm v + # 文件支持格式 + fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf + # 文件大小 + maxFileCount: 6 + server: - port: 8080 - url: http://127.0.0.1:8080/businesscard - system-title: 名片管理系统 - system-sub-title: 名片系统 + port: 8090 servlet: context-path: /businesscard 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: @@ -29,7 +31,7 @@ spring: db-type: mysql driver-class-name: com.mysql.cj.jdbc.Driver username: root - password: 123456 + password: admin initial-size: 2 min-idle: 2 max-active: 10 @@ -65,38 +67,4 @@ mybatis: logging: level: root: error - com.cm: debug - -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 - # 文件类型 - 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 \ No newline at end of file + com.cm: debug \ No newline at end of file