application.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. # 项目相关配置
  2. goomood:
  3. # 名称
  4. name: gdphm
  5. # 版本
  6. version: 1.0.0
  7. # 版权年份
  8. copyrightYear: 2024
  9. # 文件路径 示例( Windows配置D:/goomood/uploadPath,Linux配置 /home/goomood/uploadPath)
  10. profile: D:/gdphm/upload
  11. #profile: D:/goomood/upload
  12. #profile: /home/ubuntu/goomood/
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数字计算 char 字符验证
  16. captchaType: math
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 8085
  21. servlet:
  22. # 应用的访问路径
  23. context-path: /
  24. tomcat:
  25. # tomcat的URI编码
  26. uri-encoding: UTF-8
  27. # 连接数满后的排队数,默认为100
  28. accept-count: 1000
  29. threads:
  30. # tomcat最大线程数,默认为200
  31. max: 200
  32. # Tomcat启动初始化的线程数,默认值10
  33. min-spare: 10
  34. # 日志配置
  35. logging:
  36. level:
  37. com.goomood: debug
  38. org.springframework: warn
  39. #es配置
  40. elasticsearch:
  41. host: localhost
  42. #host: 122.51.221.211
  43. port: 9200
  44. # 用户配置
  45. user:
  46. password:
  47. # 密码最大错误次数
  48. maxRetryCount: 1000
  49. # 密码锁定时间(默认10分钟)
  50. lockTime: 1
  51. # Spring配置
  52. spring:
  53. # 资源信息
  54. messages:
  55. # 国际化资源文件路径
  56. basename: i18n/messages
  57. profiles:
  58. active: druid
  59. # 文件上传
  60. servlet:
  61. multipart:
  62. # 单个文件大小
  63. max-file-size: 10MB
  64. # 设置总上传的文件大小
  65. max-request-size: 20MB
  66. # 服务模块
  67. devtools:
  68. restart:
  69. # 热部署开关
  70. enabled: false
  71. cache:
  72. # 指定缓存类型 ehcache 本地缓存 redis 缓存
  73. type: ehcache
  74. ehcache:
  75. config: classpath:ehcache.xml
  76. redis:
  77. # 指定存活时间(ms)
  78. time-to-live: 86400000
  79. # 指定前缀
  80. use-key-prefix: true
  81. # 是否缓存空值,可以防止缓存穿透
  82. cache-null-values: true
  83. # token配置
  84. token:
  85. # 令牌自定义标识
  86. header: Authorization
  87. # 令牌密钥
  88. secret: abcdefghijklmnopqrstuvwxyz
  89. # 令牌有效期(默认30分钟)
  90. expireTime: 30
  91. # MyBatis配置
  92. mybatis-plus:
  93. mapper-locations: classpath*:mapper/**/*.xml
  94. type-aliases-package: com.goomood.**.domain
  95. global-config:
  96. db-config:
  97. update-strategy: not_null
  98. logic-strategy: not_null
  99. configuration:
  100. # hump show
  101. map-underscore-to-camel-case: true
  102. # add sql log
  103. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  104. jdbc-type-for-null: null
  105. cache-enabled: false
  106. # PageHelper分页插件
  107. pagehelper:
  108. helperDialect: mysql
  109. supportMethodsArguments: true
  110. params: count=countSql
  111. # Swagger配置
  112. swagger:
  113. # 是否开启swagger
  114. enabled: true
  115. # 请求前缀
  116. pathMapping: /dev-api
  117. # 防止XSS攻击
  118. xss:
  119. # 过滤开关
  120. enabled: true
  121. # 排除链接(多个用逗号分隔)
  122. excludes: /system/notice
  123. # 匹配链接
  124. urlPatterns: /system/*,/monitor/*,/tool/*