bootstrap.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # Tomcat
  2. server:
  3. port: 9240
  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-assess
  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: jsxgpassword
  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. auth:
  54. plugin:
  55. nacos:
  56. token:
  57. secret:
  58. key: cCtJSWRxbW1xT3FmZkh1RTBpdTltYkM5ZlNSaTRyQ1RiSzJzV1pweEYycz0=
  59. #ribbon的超时时间
  60. ribbon:
  61. ConnectTimeout: 60000 # 连接超时时间(ms)
  62. ReadTimeout: 60000 # 通信超时时间(ms)
  63. hystrix:
  64. command:
  65. default:
  66. execution:
  67. isolation:
  68. thread:
  69. timeoutInMillisecond: 60000 # 熔断超时时长:60000ms
  70. #上传文件绝对路径, 路径中不允许包含“userfiles”
  71. userfiles:
  72. basedir: # 文件上传路径,可以留空
  73. allowedType: file # 允许上传的文件类型, all, file ,image, audio, video, office
  74. extensions:
  75. all: all # 允许上传所有类型文件
  76. 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系统非可执行)
  77. image: gif,jpg,jpeg,bmp,png # 只允许上传图片
  78. audio: CD,OGG,MP3,ASF,WMA,WAV,MP3PRO,RM,REAL,APE,MODULE,MIDI,VQF # 只允许上传音频
  79. video: AVI,WMV,RM,RMVB,MPEG1,MPEG2,MPEG4(MP4),3GP,ASF,SWF,VOB,DAT,MOV,M4V,FLV,F4V,MKV,MTS,TS # 只允许上传视频
  80. office: txt,xls,xlsx,xlsm,xltx,xltm,xlsb,xlam,doc,docx,docm,dotx,dotm,ppt,pptx,pptm,ppsx,ppsm,potx,potm,ppam # 只允许上传office文件
  81. #oss配置
  82. config:
  83. accessory:
  84. type: minIO #local, aliyun, minIO
  85. baseDir: file
  86. local:
  87. location: d:\\accessory
  88. aliyun:
  89. aliyunUrl: http://oss.gangwaninfo.com
  90. aliyunDownloadUrl: http://cdn.gangwaninfo.com
  91. endpoint: http://oss-cn-hangzhou.aliyuncs.com
  92. accessKeyId: LTAI5tKa6kzGr5EyPWJB4EcD
  93. accessKeySecret: arHxB7ZPhizrBYf4844TtyaRctPMgW
  94. bucketName: xgxm-test
  95. minIO:
  96. endpoint:
  97. accessKey:
  98. secretKey:
  99. bucketName:
  100. #阿里云文件夹路径
  101. aliyun_directory: attachment-file/assess
  102. #签章阿里云文件bucketName
  103. qzBucketName: xg-qz