application.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.8.8
  7. # 版权年份
  8. copyrightYear: 2024
  9. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  10. profile: D:/ruoyi/uploadPath
  11. # 获取ip地址开关
  12. addressEnabled: false
  13. # 验证码类型 math 数字计算 char 字符验证
  14. captchaType: math
  15. # 开发环境配置
  16. server:
  17. # 服务器的HTTP端口,默认为8080
  18. port: 8080
  19. ssl:
  20. key-store: classpath:ipfcst.keystore
  21. key-store-type: JKS
  22. key-store-password: jiayue6677*
  23. enabled-protocols: "TLSv1.2"
  24. ciphers: "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
  25. servlet:
  26. # 应用的访问路径
  27. context-path: /
  28. tomcat:
  29. # tomcat的URI编码
  30. uri-encoding: UTF-8
  31. # 连接数满后的排队数,默认为100
  32. accept-count: 1000
  33. threads:
  34. # tomcat最大线程数,默认为200
  35. max: 800
  36. # Tomcat启动初始化的线程数,默认值10
  37. min-spare: 100
  38. # 日志配置
  39. logging:
  40. level:
  41. com.cpp: debug
  42. org.springframework: warn
  43. # 用户配置
  44. user:
  45. password:
  46. # 密码最大错误次数
  47. maxRetryCount: 5
  48. # 密码锁定时间(默认10分钟)
  49. lockTime: 10
  50. # Spring配置
  51. spring:
  52. # 资源信息
  53. messages:
  54. # 国际化资源文件路径
  55. basename: i18n/messages
  56. profiles:
  57. active: druid
  58. # 文件上传
  59. servlet:
  60. multipart:
  61. # 单个文件大小
  62. max-file-size: 10MB
  63. # 设置总上传的文件大小
  64. max-request-size: 20MB
  65. # 服务模块
  66. devtools:
  67. restart:
  68. # 热部署开关
  69. enabled: true
  70. # redis 配置
  71. # redis:
  72. # # 地址
  73. # host: localhost
  74. # # 端口,默认为6379
  75. # port: 6379
  76. # # 数据库索引
  77. # database: 0
  78. # # 密码
  79. # password:
  80. # # 连接超时时间
  81. # timeout: 10s
  82. # lettuce:
  83. # pool:
  84. # # 连接池中的最小空闲连接
  85. # min-idle: 0
  86. # # 连接池中的最大空闲连接
  87. # max-idle: 8
  88. # # 连接池的最大数据库连接数
  89. # max-active: 8
  90. # # #连接池最大阻塞等待时间(使用负值表示没有限制)
  91. # max-wait: -1ms
  92. # token配置
  93. token:
  94. # 令牌自定义标识
  95. header: Authorization
  96. # 令牌密钥
  97. secret: abcdefghijklmnopqrstuvwxyz
  98. # 令牌有效期(默认30分钟)
  99. expireTime: 30
  100. # MyBatisPlus配置
  101. mybatis-plus:
  102. # 搜索指定包别名
  103. type-aliases-package: com.cpp.**.domain
  104. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  105. mapper-locations: classpath*:mapper/**/*Mapper.xml
  106. # 加载全局的配置文件
  107. config-location: classpath:mybatis/mybatis-config.xml
  108. # PageHelper分页插件
  109. pagehelper:
  110. helperDialect: mysql
  111. supportMethodsArguments: true
  112. params: count=countSql
  113. # Swagger配置
  114. swagger:
  115. # 是否开启swagger
  116. enabled: true
  117. # 请求前缀
  118. pathMapping: /dev-api
  119. # 防止XSS攻击
  120. xss:
  121. # 过滤开关
  122. enabled: true
  123. # 排除链接(多个用逗号分隔)
  124. excludes: /system/notice
  125. # 匹配链接
  126. urlPatterns: /system/*,/monitor/*,/tool/*
  127. calculate:
  128. service:
  129. enabled: true
  130. version: 0.0.39
  131. dbType: mysql