application.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: 红外遥控
  5. # 版本
  6. version: 1.0.0.Beta
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. profile: /data/nginx/html/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数字计算 char 字符验证
  16. captchaType: math
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8081
  20. port: 8081
  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: 800
  32. # Tomcat启动初始化的线程数,默认值10
  33. min-spare: 100
  34. # 日志配置
  35. logging:
  36. level:
  37. com.ruoyi: debug
  38. org.springframework: warn
  39. # 用户配置
  40. user:
  41. password:
  42. # 密码最大错误次数
  43. maxRetryCount: 5
  44. # 密码锁定时间(默认10分钟)
  45. lockTime: 10
  46. # Spring配置
  47. spring:
  48. # 资源信息
  49. messages:
  50. # 国际化资源文件路径
  51. basename: i18n/messages
  52. profiles:
  53. active: druid
  54. # 文件上传
  55. servlet:
  56. multipart:
  57. # 单个文件大小
  58. max-file-size: 10MB
  59. # 设置总上传的文件大小
  60. max-request-size: 20MB
  61. # 服务模块
  62. devtools:
  63. restart:
  64. # 热部署开关
  65. enabled: true
  66. # redis 配置
  67. redis:
  68. # 地址
  69. host: 172.21.19.131
  70. # 端口,默认为6379
  71. port: 6379
  72. # 数据库索引
  73. database: 3
  74. # 密码
  75. password: 8A*X@&EbKeiw
  76. # 连接超时时间
  77. timeout: 10s
  78. lettuce:
  79. pool:
  80. # 连接池中的最小空闲连接
  81. min-idle: 0
  82. # 连接池中的最大空闲连接
  83. max-idle: 8
  84. # 连接池的最大数据库连接数
  85. max-active: 8
  86. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  87. max-wait: -1ms
  88. # token配置
  89. token:
  90. # 令牌自定义标识
  91. header: Authorization
  92. # 令牌密钥
  93. secret: abcdefghijklmnopqrstuvwxyz
  94. # 令牌有效期(默认30分钟)
  95. expireTime: 30
  96. ## MyBatis配置
  97. #mybatis:
  98. # # 搜索指定包别名
  99. # typeAliasesPackage: com.ruoyi.**.domain
  100. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  101. # mapperLocations: classpath*:mapper/**/*Mapper.xml
  102. # # 加载全局的配置文件
  103. # configLocation: classpath:mybatis/mybatis-config.xml
  104. # MyBatis-plus配置
  105. mybatis-plus:
  106. # 指定实体类所在包的路径,MyBatis-Plus 会自动扫描该路径下的实体类
  107. typeAliasesPackage: com.ruoyi.**.domain
  108. # 指定 Mapper 接口所在包的路径,MyBatis-Plus 会自动扫描该路径下的 Mapper 接口
  109. mapperLocations: classpath*:mapper/**/*Mapper.xml
  110. # 指定 MyBatis 全局配置文件的位置
  111. # configLocation: classpath:mybatis/mybatis-config.xml
  112. configuration:
  113. #在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射
  114. map-underscore-to-camel-case: true
  115. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  116. global-config:
  117. db-config:
  118. id-type: AUTO
  119. logic-delete-field: delFlag #删除字段
  120. logic-delete-value: 2
  121. logic-not-delete-value: 0
  122. # PageHelper分页插件
  123. pagehelper:
  124. helperDialect: mysql
  125. supportMethodsArguments: true
  126. params: count=countSql
  127. # Swagger配置
  128. swagger:
  129. # 是否开启swagger
  130. enabled: true
  131. # 请求前缀
  132. pathMapping:
  133. # 防止XSS攻击
  134. xss:
  135. # 过滤开关
  136. enabled: true
  137. # 排除链接(多个用逗号分隔)
  138. excludes: /system/notice
  139. # 匹配链接
  140. urlPatterns: /system/*,/monitor/*,/tool/*
  141. #自定义短信模板配置
  142. aliyun:
  143. sms:
  144. accessKeyId: LTAI5tKvxXUQ61e5PSm3mzQ1
  145. accessKeySecret: WEzhPLHWqEINBbiLn168g2nP1H8Cje
  146. #短信签名
  147. signName: 阿里云短信测试
  148. #短信模板
  149. templateCode: SMS_154950909