bootstrap.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # Tomcat
  2. server:
  3. port: 9245
  4. servlet:
  5. context-path:
  6. #mybatis-plus配置
  7. #mybatis-plus:
  8. # mapper-locations:
  9. # - classpath*:com/jeeplus/modules/**/*Mapper.xml
  10. # - classpath:/META-INF/admin-mybatis-mappings/*.xml
  11. # - classpath:/META-INF/modeler-mybatis-mappings/*.xml
  12. # #实体扫描,多个package用逗号或者分号分隔
  13. # typeAliasesPackage: com.jeeplus.modules.**.entity
  14. # configuration-properties:
  15. # prefix:
  16. # boolValue: TRUE
  17. # blobType: BLOB
  18. # Spring
  19. spring:
  20. main:
  21. allow-bean-definition-overriding: true
  22. servlet:
  23. multipart:
  24. max-file-size: 100MB
  25. max-request-size: 100MB
  26. application:
  27. # 应用名称
  28. name: jeeplus-public-modules
  29. profiles:
  30. # 环境配置
  31. active: pro
  32. cloud:
  33. nacos:
  34. discovery:
  35. # 服务注册地址
  36. server-addr: 127.0.0.1:8848
  37. # 命名空间
  38. namespace: ${spring.profiles.active}
  39. #username: nacos
  40. # password: nacos
  41. config:
  42. # 配置中心地址
  43. server-addr: 127.0.0.1:8848
  44. # 配置文件格式
  45. file-extension: yml
  46. # 共享配置
  47. shared-configs:
  48. - application.${spring.cloud.nacos.config.file-extension}
  49. # 命名空间
  50. namespace: ${spring.profiles.active}
  51. # username: ${spring.cloud.nacos.discovery.username}
  52. # password: ${spring.cloud.nacos.discovery.password}
  53. #ribbon的超时时间
  54. ribbon:
  55. ConnectTimeout: 60000 # 连接超时时间(ms)
  56. ReadTimeout: 60000 # 通信超时时间(ms)
  57. hystrix:
  58. command:
  59. default:
  60. execution:
  61. isolation:
  62. thread:
  63. timeoutInMillisecond: 60000 # 熔断超时时长:60000ms
  64. #上传文件绝对路径, 路径中不允许包含“userfiles”
  65. userfiles:
  66. basedir: # 文件上传路径,可以留空
  67. allowedType: file # 允许上传的文件类型, all, file ,image, audio, video, office
  68. extensions:
  69. all: all # 允许上传所有类型文件
  70. 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系统非可执行)
  71. image: gif,jpg,jpeg,bmp,png # 只允许上传图片
  72. audio: CD,OGG,MP3,ASF,WMA,WAV,MP3PRO,RM,REAL,APE,MODULE,MIDI,VQF # 只允许上传音频
  73. video: AVI,WMV,RM,RMVB,MPEG1,MPEG2,MPEG4(MP4),3GP,ASF,SWF,VOB,DAT,MOV,M4V,FLV,F4V,MKV,MTS,TS # 只允许上传视频
  74. office: txt,xls,xlsx,xlsm,xltx,xltm,xlsb,xlam,doc,docx,docm,dotx,dotm,ppt,pptx,pptm,ppsx,ppsm,potx,potm,ppam # 只允许上传office文件
  75. #oss配置
  76. config:
  77. accessory:
  78. type: minIO #local, aliyun, minIO
  79. baseDir: file
  80. local:
  81. location: d:\\accessory
  82. aliyun:
  83. aliyunUrl: http://oss.gangwaninfo.com
  84. aliyunDownloadUrl: http://cdn.gangwaninfo.com
  85. endpoint: http://oss-cn-hangzhou.aliyuncs.com
  86. accessKeyId: LTAI5tQDWoM9c1WyJNPs86rX
  87. accessKeySecret: 84dDIx4edT1n78KUOqqSmDZ35pchJv
  88. bucketName: xg-pg
  89. minIO:
  90. endpoint:
  91. accessKey:
  92. secretKey:
  93. bucketName:
  94. #阿里云文件夹路径
  95. aliyun_directory: attachment-file/assess
  96. #签章阿里云文件bucketName
  97. qzBucketName: xg-qz