application.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # 项目相关配置
  2. gyee:
  3. #名称
  4. name: v2
  5. #版本
  6. version: 3.9
  7. #版权年份
  8. copyrightYear: 2020
  9. #文件上传路径
  10. defaultBaseDir: D:/v2file/
  11. #地址是否放入项目static目录,如果未Y 放入项目得static。 profile配置失效。 为N存放在D:/v2file/ 前端读取相同,不受影响
  12. isstatic: Y
  13. #开启存放静态文件夹后目录
  14. isroot_dir: static/file_upload/
  15. #邮件功能
  16. #邮箱发送smtp
  17. email_smtp: smtp.sina.com
  18. #邮箱发送端口
  19. email_port: 465
  20. #发送邮箱登录账号
  21. email_account: gyee@163.com
  22. #发送邮箱登录密码
  23. email_password: 1
  24. #实例演示开关 启动该模式删除增加修改会弹出演示模式提示框
  25. demoEnabled: false
  26. #漂亮得拖动验证码 默认false普通验证码、true滚动验证码
  27. rollVerification: true
  28. #实时数据库Url
  29. baseurl: http://10.155.32.4:8011/ts
  30. #tomcat config
  31. server :
  32. port : 8082
  33. session:
  34. timeout: 7200
  35. ##项目名字配置
  36. #servlet :
  37. # context-path : /demo
  38. tomcat :
  39. maxHttpHeaderSize : 8192
  40. max-threads : 128
  41. min-spare-threads : 5
  42. uri-encoding : UTF-8
  43. #shiro 报错修改的地方
  44. max-connections: 200000
  45. max-http-post-size: 9000000
  46. spring :
  47. # 环境 dev|test|prod
  48. profiles :
  49. active : dev
  50. #引入其他配置文件,例如ftpHX 未配置文件application-ftpHX.yml
  51. #include: ftpHX,ftpCloud
  52. servlet:
  53. multipart:
  54. #设置总上传的数据大小
  55. max-request-size: 100MB
  56. #单个文件大小
  57. maxFileSize : 30MB
  58. #shiro 报错修改的地方
  59. max-connections: 200000
  60. max-http-post-size: 9000000
  61. #热部署模块
  62. devtools:
  63. restart:
  64. #热部署开关
  65. enabled: true
  66. #指定热部署的目录
  67. additional-paths: src/main/java
  68. #指定目录不更新
  69. exclude: test/**
  70. mvc: #静态文件
  71. static-path-pattern : /static/**
  72. async.request-timeout : 20000 #接口访问超时设置20秒
  73. #模板引擎
  74. thymeleaf:
  75. model: HTML5
  76. prefix: classpath:/templates/
  77. suffix: .html
  78. #指定编码
  79. encoding: utf-8
  80. #禁用缓存 默认false
  81. cache: false
  82. jackson:
  83. time-zone: GMT+8
  84. date-format: yyyy-MM-dd HH:mm:ss
  85. redis:
  86. database: 0
  87. host: 127.0.0.1
  88. password: ''
  89. pool:
  90. max-active: 8
  91. max-idle: 8
  92. max-wait: -1
  93. min-idle: 0
  94. port: 6379
  95. timeout: 60000
  96. #mybatis:
  97. # #配置mapper的扫描,找到所有的mapper.xml映射文件
  98. # mapperLocations : classpath*:mybatis/*/*.xml
  99. # #mybatis提供三种sql执行器,分别是SIMPLE、REUSE、BATCH。
  100. # executor-type : reuse
  101. # #搜索指定包别名
  102. # typeAliasesPackage : com.*.model
  103. # #该配置项就是指将带有下划线的表字段映射为驼峰格式的实体类属性。
  104. # configuration :
  105. # map-underscore-to-camel-case : true
  106. #mybatis:
  107. # configuration:
  108. # #开启MyBatis的二级缓存
  109. # cache-enabled: false
  110. #pagehelper分页插件
  111. pagehelper:
  112. helperDialect: mysql
  113. reasonable: true
  114. supportMethodsArguments: true
  115. params: count=countSql
  116. #七牛云配置
  117. oss:
  118. qiniu:
  119. #对应存储空间的访问域名
  120. domain: q0stnsal9.aaa.bbb.com
  121. #accessKey密钥
  122. accessKey: 5o-rVbYF111C
  123. #secretKey秘钥
  124. secretKey: C9TETPDFHDj38d
  125. #bucket是创建的存储空间名
  126. bucket: test-img