|
@@ -18,6 +18,8 @@ server:
|
|
|
|
|
|
# Spring
|
|
# Spring
|
|
spring:
|
|
spring:
|
|
|
|
+ main:
|
|
|
|
+ allow-bean-definition-overriding: true
|
|
servlet:
|
|
servlet:
|
|
multipart:
|
|
multipart:
|
|
max-file-size: 100MB
|
|
max-file-size: 100MB
|
|
@@ -58,3 +60,40 @@ hystrix:
|
|
thread:
|
|
thread:
|
|
timeoutInMillisecond: 60000 # 熔断超时时长:60000ms
|
|
timeoutInMillisecond: 60000 # 熔断超时时长:60000ms
|
|
|
|
|
|
|
|
+#上传文件绝对路径, 路径中不允许包含“userfiles”
|
|
|
|
+userfiles:
|
|
|
|
+ basedir: # 文件上传路径,可以留空
|
|
|
|
+ allowedType: file # 允许上传的文件类型, all, file ,image, audio, video, office
|
|
|
|
+ extensions:
|
|
|
|
+ all: all # 允许上传所有类型文件
|
|
|
|
+ file: 7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip # 只允许上传安全文件(linux系统非可执行)
|
|
|
|
+ image: gif,jpg,jpeg,bmp,png # 只允许上传图片
|
|
|
|
+ audio: CD,OGG,MP3,ASF,WMA,WAV,MP3PRO,RM,REAL,APE,MODULE,MIDI,VQF # 只允许上传音频
|
|
|
|
+ video: AVI,WMV,RM,RMVB,MPEG1,MPEG2,MPEG4(MP4),3GP,ASF,SWF,VOB,DAT,MOV,M4V,FLV,F4V,MKV,MTS,TS # 只允许上传视频
|
|
|
|
+ office: txt,xls,xlsx,xlsm,xltx,xltm,xlsb,xlam,doc,docx,docm,dotx,dotm,ppt,pptx,pptm,ppsx,ppsm,potx,potm,ppam # 只允许上传office文件
|
|
|
|
+
|
|
|
|
+#oss配置
|
|
|
|
+config:
|
|
|
|
+ accessory:
|
|
|
|
+ type: minIO #local, aliyun, minIO
|
|
|
|
+ baseDir: file
|
|
|
|
+ local:
|
|
|
|
+ location: d:\\accessory
|
|
|
|
+ aliyun:
|
|
|
|
+ aliyunUrl: http://oss.gangwaninfo.com
|
|
|
|
+ aliyunDownloadUrl: http://cdn.gangwaninfo.com
|
|
|
|
+ endpoint: http://oss-cn-hangzhou.aliyuncs.com
|
|
|
|
+ accessKeyId: LTAI5tQDWoM9c1WyJNPs86rX
|
|
|
|
+ accessKeySecret: 84dDIx4edT1n78KUOqqSmDZ35pchJv
|
|
|
|
+ bucketName: xgxm-test
|
|
|
|
+ minIO:
|
|
|
|
+ endpoint:
|
|
|
|
+ accessKey:
|
|
|
|
+ secretKey:
|
|
|
|
+ bucketName:
|
|
|
|
+
|
|
|
|
+#阿里云文件夹路径
|
|
|
|
+aliyun_directory: attachment-file/assess
|
|
|
|
+#签章阿里云文件bucketName
|
|
|
|
+qzBucketName: xg-qz
|
|
|
|
+
|